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.
- package/README.md +3 -2
- package/dist/CommentBubblePlugin-DDCERFQO.js +29 -0
- package/dist/{LazyCodeMirror-CcceEUqu.js → LazyCodeMirror-C1bW4mVF.js} +941 -1484
- package/dist/{LazySignatureCanvas-Cck44R9l.js → LazySignatureCanvas-D5P1189T.js} +21 -38
- package/dist/Provider/EditorProvider.d.ts +2 -0
- package/dist/api/auth.d.ts +4 -0
- package/dist/assets/style.css +1 -1
- package/dist/{babel-CCPWkrf4.js → babel-B9hn44Wo.js} +726 -1302
- package/dist/components/ColorPicker/LazyHexColorPicker.d.ts +2 -0
- package/dist/components/CommentToggle/CommentToggle.d.ts +2 -2
- package/dist/components/ConfigurableEditorWithAuth.d.ts +2 -2
- package/dist/components/EmojiPickerWidget/LazyEmojiPicker.d.ts +4 -0
- package/dist/components/LockedFeature/FeatureLockCard.d.ts +22 -0
- package/dist/components/LockedFeature/FeatureLockTooltipContent.d.ts +12 -0
- package/dist/components/LockedFeature/LockedFeature.d.ts +6 -1
- package/dist/components/LockedFeature/lockedFeatureMetadata.d.ts +7 -0
- package/dist/components/Toolbar/styles.d.ts +5 -5
- package/dist/components/ui/tooltip.d.ts +2 -1
- package/dist/{estree-CxUPh9wa.js → estree-CocPn_Md.js} +529 -917
- package/dist/{generateDocxThumbnail-DGj_L73_.js → generateDocxThumbnail-BVFpoKUP.js} +762 -1118
- package/dist/{generatePdfThumbnail-D1ui86rp.js → generatePdfThumbnail-Pvt57kGy.js} +13 -19
- package/dist/{generateXlsxThumbnail-CbJOr-_6.js → generateXlsxThumbnail-DRggrLYK.js} +3322 -3508
- package/dist/{html-CmniStvG.js → html-CxCicOef.js} +350 -589
- package/dist/{html2canvas.esm-C2wu93Kq.js → html2canvas.esm-BD_Vwvv8.js} +139 -204
- package/dist/{html2pdf.bundle.min-CN_w9Sxu.js → html2pdf.bundle.min-DElEIEzd.js} +3405 -5221
- package/dist/{index-DiSjJC3k.js → index-C9Dld3-L.js} +13 -13
- package/dist/{index-CuwrKBfY.js → index-Cojy1w7r.js} +194 -217
- package/dist/index-D11sRTul.js +147 -0
- package/dist/{index-Dh0oRk6u.js → index-DFEFJp4J.js} +37294 -41489
- package/dist/index-D_izLqTY.js +552 -0
- package/dist/{index-hrDzgkRb.js → index-ZBDns08-.js} +81 -80
- package/dist/index-rm00T8b9.js +166 -0
- package/dist/index.js +2 -2
- package/dist/{markdown-B0mEGGfQ.js → markdown-BUjgWFLu.js} +578 -1015
- package/dist/{objectWithoutPropertiesLoose-DO0w4vQT.js → objectWithoutPropertiesLoose-DiWPeE4c.js} +6 -10
- package/dist/pages/ConfigurableEditor/ConfigurableEditor.d.ts +1 -1
- package/dist/plugins/LocalStoragePlugin.d.ts +0 -2
- package/dist/{postcss-B0bxXf7u.js → postcss-CGIcwj_g.js} +615 -1065
- package/dist/{standalone-DmuJV5rn.js → standalone-C0qguT38.js} +350 -596
- package/dist/{typescript-DZlC_9M8.js → typescript-BM7wk6k-.js} +1114 -1806
- package/package.json +8 -1
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { jsx as j } from "react/jsx-runtime";
|
|
2
2
|
import A, { Component as q, forwardRef as I } from "react";
|
|
3
|
-
import { _ as V, a as $ } from "./objectWithoutPropertiesLoose-
|
|
4
|
-
import {
|
|
3
|
+
import { _ as V, a as $ } from "./objectWithoutPropertiesLoose-DiWPeE4c.js";
|
|
4
|
+
import { i as N } from "./index-DFEFJp4J.js";
|
|
5
5
|
function H(e, n) {
|
|
6
|
-
if (e == null)
|
|
7
|
-
return {};
|
|
6
|
+
if (e == null) return {};
|
|
8
7
|
var r, t, o = V(e, n);
|
|
9
8
|
if (Object.getOwnPropertySymbols) {
|
|
10
9
|
var a = Object.getOwnPropertySymbols(e);
|
|
11
|
-
for (t = 0; t < a.length; t++)
|
|
12
|
-
r = a[t], n.indexOf(r) === -1 && {}.propertyIsEnumerable.call(e, r) && (o[r] = e[r]);
|
|
10
|
+
for (t = 0; t < a.length; t++) r = a[t], n.indexOf(r) === -1 && {}.propertyIsEnumerable.call(e, r) && (o[r] = e[r]);
|
|
13
11
|
}
|
|
14
12
|
return o;
|
|
15
13
|
}
|
|
@@ -27,8 +25,7 @@ function Y(e, n, r) {
|
|
|
27
25
|
}), e;
|
|
28
26
|
}
|
|
29
27
|
function X(e, n) {
|
|
30
|
-
if (!(e instanceof n))
|
|
31
|
-
throw new TypeError("Cannot call a class as a function");
|
|
28
|
+
if (!(e instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
32
29
|
}
|
|
33
30
|
function M(e, n) {
|
|
34
31
|
return M = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, t) {
|
|
@@ -36,8 +33,7 @@ function M(e, n) {
|
|
|
36
33
|
}, M(e, n);
|
|
37
34
|
}
|
|
38
35
|
function G(e, n) {
|
|
39
|
-
if (typeof n != "function" && n !== null)
|
|
40
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
36
|
+
if (typeof n != "function" && n !== null) throw new TypeError("Super expression must either be null or a function");
|
|
41
37
|
e.prototype = Object.create(n && n.prototype, {
|
|
42
38
|
constructor: {
|
|
43
39
|
value: e,
|
|
@@ -64,15 +60,12 @@ function U() {
|
|
|
64
60
|
})();
|
|
65
61
|
}
|
|
66
62
|
function J(e) {
|
|
67
|
-
if (e === void 0)
|
|
68
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
63
|
+
if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
69
64
|
return e;
|
|
70
65
|
}
|
|
71
66
|
function K(e, n) {
|
|
72
|
-
if (n && (O(n) == "object" || typeof n == "function"))
|
|
73
|
-
|
|
74
|
-
if (n !== void 0)
|
|
75
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
|
67
|
+
if (n && (O(n) == "object" || typeof n == "function")) return n;
|
|
68
|
+
if (n !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
76
69
|
return J(e);
|
|
77
70
|
}
|
|
78
71
|
function Q(e) {
|
|
@@ -82,23 +75,20 @@ function Q(e) {
|
|
|
82
75
|
if (n) {
|
|
83
76
|
var o = T(this).constructor;
|
|
84
77
|
r = Reflect.construct(t, arguments, o);
|
|
85
|
-
} else
|
|
86
|
-
r = t.apply(this, arguments);
|
|
78
|
+
} else r = t.apply(this, arguments);
|
|
87
79
|
return K(this, r);
|
|
88
80
|
};
|
|
89
81
|
}
|
|
90
82
|
var S = { exports: {} }, R, L;
|
|
91
83
|
function Z() {
|
|
92
|
-
if (L)
|
|
93
|
-
return R;
|
|
84
|
+
if (L) return R;
|
|
94
85
|
L = 1;
|
|
95
86
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
96
87
|
return R = e, R;
|
|
97
88
|
}
|
|
98
89
|
var D, k;
|
|
99
90
|
function tt() {
|
|
100
|
-
if (k)
|
|
101
|
-
return D;
|
|
91
|
+
if (k) return D;
|
|
102
92
|
k = 1;
|
|
103
93
|
var e = /* @__PURE__ */ Z();
|
|
104
94
|
function n() {
|
|
@@ -389,20 +379,19 @@ d.prototype.toData = function() {
|
|
|
389
379
|
};
|
|
390
380
|
var C = { exports: {} }, ot = C.exports, F;
|
|
391
381
|
function it() {
|
|
392
|
-
return F || (F = 1, function(e, n) {
|
|
382
|
+
return F || (F = 1, (function(e, n) {
|
|
393
383
|
(function(r, t) {
|
|
394
384
|
e.exports = t();
|
|
395
385
|
})(ot, function() {
|
|
396
|
-
return function(r) {
|
|
386
|
+
return (function(r) {
|
|
397
387
|
function t(a) {
|
|
398
|
-
if (o[a])
|
|
399
|
-
return o[a].exports;
|
|
388
|
+
if (o[a]) return o[a].exports;
|
|
400
389
|
var c = o[a] = { exports: {}, id: a, loaded: !1 };
|
|
401
390
|
return r[a].call(c.exports, c, c.exports, t), c.loaded = !0, c.exports;
|
|
402
391
|
}
|
|
403
392
|
var o = {};
|
|
404
393
|
return t.m = r, t.c = o, t.p = "", t(0);
|
|
405
|
-
}([function(r, t) {
|
|
394
|
+
})([function(r, t) {
|
|
406
395
|
function o(s) {
|
|
407
396
|
var u = s.getContext("2d"), p = s.width, l = s.height, f = u.getImageData(0, 0, p, l).data, y = i(!0, p, l, f), v = i(!1, p, l, f), _ = h(!0, p, l, f), m = h(!1, p, l, f), x = m - _ + 1, P = v - y + 1, w = u.getImageData(_, y, x, P);
|
|
408
397
|
return s.width = x, s.height = P, u.clearRect(0, 0, x, P), u.putImageData(w, 0, 0), s;
|
|
@@ -414,27 +403,21 @@ function it() {
|
|
|
414
403
|
return a(s, u, p, l).alpha;
|
|
415
404
|
}
|
|
416
405
|
function i(s, u, p, l) {
|
|
417
|
-
for (var f = s ? 1 : -1, y = s ? 0 : p - 1, v = y; s ? v < p : v > -1; v += f)
|
|
418
|
-
for (var _ = 0; _ < u; _++)
|
|
419
|
-
if (c(_, v, u, l))
|
|
420
|
-
return v;
|
|
406
|
+
for (var f = s ? 1 : -1, y = s ? 0 : p - 1, v = y; s ? v < p : v > -1; v += f) for (var _ = 0; _ < u; _++) if (c(_, v, u, l)) return v;
|
|
421
407
|
return null;
|
|
422
408
|
}
|
|
423
409
|
function h(s, u, p, l) {
|
|
424
|
-
for (var f = s ? 1 : -1, y = s ? 0 : u - 1, v = y; s ? v < u : v > -1; v += f)
|
|
425
|
-
for (var _ = 0; _ < p; _++)
|
|
426
|
-
if (c(v, _, u, l))
|
|
427
|
-
return v;
|
|
410
|
+
for (var f = s ? 1 : -1, y = s ? 0 : u - 1, v = y; s ? v < u : v > -1; v += f) for (var _ = 0; _ < p; _++) if (c(v, _, u, l)) return v;
|
|
428
411
|
return null;
|
|
429
412
|
}
|
|
430
413
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.default = o;
|
|
431
414
|
}]);
|
|
432
415
|
});
|
|
433
|
-
}(C)), C.exports;
|
|
416
|
+
})(C)), C.exports;
|
|
434
417
|
}
|
|
435
418
|
var at = it();
|
|
436
419
|
const st = /* @__PURE__ */ N(at);
|
|
437
|
-
var ct = ["canvasProps", "clearOnResize"], E = /* @__PURE__ */ function(e) {
|
|
420
|
+
var ct = ["canvasProps", "clearOnResize"], E = /* @__PURE__ */ (function(e) {
|
|
438
421
|
G(r, e);
|
|
439
422
|
var n = Q(r);
|
|
440
423
|
function r() {
|
|
@@ -499,7 +482,7 @@ var ct = ["canvasProps", "clearOnResize"], E = /* @__PURE__ */ function(e) {
|
|
|
499
482
|
}, t;
|
|
500
483
|
}
|
|
501
484
|
return Y(r);
|
|
502
|
-
}(q);
|
|
485
|
+
})(q);
|
|
503
486
|
E.propTypes = {
|
|
504
487
|
// signature_pad's props
|
|
505
488
|
velocityFilterWeight: g.number,
|
|
@@ -38,6 +38,8 @@ interface EditorContextType {
|
|
|
38
38
|
byokApiKeys: ByokApiKeys | null;
|
|
39
39
|
/** When true, editor hides Eddyter branding/logo (admin toggle per-plan). */
|
|
40
40
|
hideBranding: boolean;
|
|
41
|
+
/** Cheapest plan that unlocks each locked-feature catalog key (from API) */
|
|
42
|
+
featureMinimumPlanNames: Record<string, string> | null;
|
|
41
43
|
}
|
|
42
44
|
export declare const useEditor: () => EditorContextType;
|
|
43
45
|
export declare const useEditorOptional: () => EditorContextType | undefined;
|
package/dist/api/auth.d.ts
CHANGED
|
@@ -119,6 +119,10 @@ export interface ProjectData {
|
|
|
119
119
|
};
|
|
120
120
|
/** When true, editor hides Eddyter branding/logo for users on this plan (admin toggle per-plan). */
|
|
121
121
|
hideBranding?: boolean;
|
|
122
|
+
/**
|
|
123
|
+
* From license validate: cheapest active plan name that unlocks each editor feature (catalog keys).
|
|
124
|
+
*/
|
|
125
|
+
featureMinimumPlanNames?: Record<string, string>;
|
|
122
126
|
}
|
|
123
127
|
export interface ApiResponse {
|
|
124
128
|
success: boolean;
|