@lax-wp/editor 0.3.19 → 0.3.20
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/extensions/AnonymizedText.d.ts +0 -2
- package/dist/index.es.js +22 -25
- package/dist/index.umd.js +3 -3
- package/package.json +6 -6
|
@@ -22,8 +22,6 @@ export declare function applyCategoryStyle(dom: HTMLElement, anonymizedData: str
|
|
|
22
22
|
/** Remove all chip styling from a DOM element so it renders as inline text. */
|
|
23
23
|
export declare function clearCategoryStyle(dom: HTMLElement): void;
|
|
24
24
|
export interface AnonymizedTextOptions {
|
|
25
|
-
/** Whether the original value tooltip is shown on hover. */
|
|
26
|
-
showTooltip: boolean;
|
|
27
25
|
placeholderFormat: string;
|
|
28
26
|
highlightChanges: boolean;
|
|
29
27
|
isAnonymized: boolean;
|
package/dist/index.es.js
CHANGED
|
@@ -78967,7 +78967,7 @@ const DU = vt.create({
|
|
|
78967
78967
|
selectable: !0,
|
|
78968
78968
|
draggable: !1,
|
|
78969
78969
|
addOptions() {
|
|
78970
|
-
return {
|
|
78970
|
+
return { placeholderFormat: "numbered", highlightChanges: !1, isAnonymized: !1 };
|
|
78971
78971
|
},
|
|
78972
78972
|
addAttributes() {
|
|
78973
78973
|
return {
|
|
@@ -79020,7 +79020,7 @@ const DU = vt.create({
|
|
|
79020
79020
|
let s = r;
|
|
79021
79021
|
try {
|
|
79022
79022
|
const c = JSON.parse(i)[0]?.value ?? "";
|
|
79023
|
-
o && c && (s = c)
|
|
79023
|
+
o && c && (s = c);
|
|
79024
79024
|
} catch {
|
|
79025
79025
|
}
|
|
79026
79026
|
return a.textContent = s, t && !o && Kb(a, i, e), {
|
|
@@ -79032,7 +79032,7 @@ const DU = vt.create({
|
|
|
79032
79032
|
let p = c;
|
|
79033
79033
|
try {
|
|
79034
79034
|
const _ = JSON.parse(d)[0]?.value ?? "";
|
|
79035
|
-
u && _ && (p = _)
|
|
79035
|
+
u && _ && (p = _);
|
|
79036
79036
|
} catch {
|
|
79037
79037
|
}
|
|
79038
79038
|
return a.textContent = p, u ? Jy(a) : Kb(a, d, e), !0;
|
|
@@ -88504,32 +88504,25 @@ const { Dragger: Hz } = gv, Gz = 200 * 1024 * 1024, Vz = ({
|
|
|
88504
88504
|
assets: aH
|
|
88505
88505
|
}, lH = 1e4, HE = 90, cH = 600, GE = 30, Lp = 13e3, dH = {
|
|
88506
88506
|
completed: {
|
|
88507
|
-
|
|
88508
|
-
|
|
88509
|
-
border: "border-[#D1FADF] dark:border-success-900",
|
|
88507
|
+
bgClass: "bg-primary-100 dark:bg-primary-900",
|
|
88508
|
+
border: "border-primary-100 dark:border-primary-900",
|
|
88510
88509
|
textClass: "!text-neutral-600 dark:!text-neutral-200"
|
|
88511
88510
|
},
|
|
88512
88511
|
scanning: {
|
|
88513
|
-
|
|
88514
|
-
|
|
88515
|
-
border: "border-[#C6E1F9] dark:border-primary-900",
|
|
88512
|
+
bgClass: "bg-primary-50 dark:bg-primary-950",
|
|
88513
|
+
border: "border-primary-100 dark:border-primary-900",
|
|
88516
88514
|
textClass: "!text-neutral-600 dark:!text-neutral-200"
|
|
88517
88515
|
},
|
|
88518
88516
|
pending: {
|
|
88519
|
-
|
|
88520
|
-
|
|
88521
|
-
border: "border-[#F2F4F7] dark:border-neutral-700",
|
|
88517
|
+
bgClass: "bg-primary-50/50 dark:bg-primary-975",
|
|
88518
|
+
border: "border-primary-50 dark:border-primary-950",
|
|
88522
88519
|
textClass: "!text-neutral-400 dark:!text-neutral-400"
|
|
88523
88520
|
}
|
|
88524
88521
|
}, uH = ({ status: e }) => e === "completed" ? /* @__PURE__ */ f.jsx(E0, { sx: { fontSize: 16 }, className: "text-success-600 dark:text-success-400" }) : e === "scanning" ? /* @__PURE__ */ f.jsx(oe, { name: "loading", size: 16, className: "text-blue-600 dark:text-blue-400 animate-spin" }) : /* @__PURE__ */ f.jsx("div", { className: "w-4 h-4 flex items-center justify-center", children: /* @__PURE__ */ f.jsx("div", { className: "w-[13px] h-[13px] rounded-full bg-neutral-300 dark:bg-neutral-600" }) }), pH = ({ status: e, label: t }) => {
|
|
88525
88522
|
const n = dH[e];
|
|
88526
|
-
return /* @__PURE__ */ f.jsxs("div", { className: `relative flex items-center gap-2 p-3 rounded-lg border border
|
|
88527
|
-
/* @__PURE__ */ f.jsx(
|
|
88528
|
-
/* @__PURE__ */ f.jsx(
|
|
88529
|
-
/* @__PURE__ */ f.jsxs("div", { className: "relative z-10 flex items-center gap-2", children: [
|
|
88530
|
-
/* @__PURE__ */ f.jsx(uH, { status: e }),
|
|
88531
|
-
/* @__PURE__ */ f.jsx(Ze, { variant: "medium", size: "small", className: n.textClass, children: t })
|
|
88532
|
-
] })
|
|
88523
|
+
return /* @__PURE__ */ f.jsxs("div", { className: `relative flex items-center gap-2 p-3 rounded-lg border ${n.border} ${n.bgClass} transition-all duration-300 overflow-hidden`, children: [
|
|
88524
|
+
/* @__PURE__ */ f.jsx(uH, { status: e }),
|
|
88525
|
+
/* @__PURE__ */ f.jsx(Ze, { variant: "medium", size: "small", className: n.textClass, children: t })
|
|
88533
88526
|
] });
|
|
88534
88527
|
}, mH = (e, t) => {
|
|
88535
88528
|
switch (t) {
|
|
@@ -91652,9 +91645,9 @@ const rG = ({
|
|
|
91652
91645
|
isApplied: r
|
|
91653
91646
|
}) => r ? /* @__PURE__ */ f.jsxs("div", { className: "flex items-center gap-2 px-3 py-2.5 rounded-md hover:bg-neutral-50 dark:hover:bg-black-700/50 transition-colors", children: [
|
|
91654
91647
|
/* @__PURE__ */ f.jsxs("div", { className: "flex items-center gap-1.5 flex-1 min-w-0", children: [
|
|
91655
|
-
/* @__PURE__ */ f.jsx("span", { className: "text-xs font-medium text-primary-600 dark:text-primary-400
|
|
91648
|
+
/* @__PURE__ */ f.jsx("span", { className: "text-xs font-medium text-primary-600 dark:text-primary-400 cursor-pointer whitespace-nowrap", title: e.replacement, children: e.replacement }),
|
|
91656
91649
|
/* @__PURE__ */ f.jsx("span", { className: "text-neutral-400 dark:text-neutral-500 text-xs shrink-0", children: "←" }),
|
|
91657
|
-
/* @__PURE__ */ f.jsx("span", { className: "text-xs font-medium text-neutral-700 dark:text-neutral-300 truncate", children: e.original })
|
|
91650
|
+
/* @__PURE__ */ f.jsx("span", { className: "text-xs font-medium text-neutral-700 dark:text-neutral-300 truncate cursor-pointer", title: e.original, children: e.original })
|
|
91658
91651
|
] }),
|
|
91659
91652
|
/* @__PURE__ */ f.jsxs("span", { className: "bg-neutral-100 dark:bg-neutral-800 rounded-lg px-1.5 py-0.5 text-xs font-medium text-neutral-600 dark:text-neutral-400 shrink-0", children: [
|
|
91660
91653
|
e.occurrences,
|
|
@@ -91671,10 +91664,10 @@ const rG = ({
|
|
|
91671
91664
|
size: "small"
|
|
91672
91665
|
}
|
|
91673
91666
|
),
|
|
91674
|
-
/* @__PURE__ */ f.jsxs("div", { className: "flex items-center gap-1.5 flex-1 min-w-0", children: [
|
|
91675
|
-
/* @__PURE__ */ f.jsx("span", { className: "text-xs font-medium text-neutral-800 dark:text-neutral-200 truncate", children: e.original }),
|
|
91667
|
+
/* @__PURE__ */ f.jsxs("div", { className: "flex items-center gap-1.5 flex-1 min-w-0 max-w-[190px]", children: [
|
|
91668
|
+
/* @__PURE__ */ f.jsx("span", { className: "text-xs font-medium text-neutral-800 dark:text-neutral-200 truncate cursor-pointer", title: e.original, children: e.original }),
|
|
91676
91669
|
/* @__PURE__ */ f.jsx("span", { className: "text-neutral-400 dark:text-neutral-500 text-xs shrink-0", children: "→" }),
|
|
91677
|
-
/* @__PURE__ */ f.jsx("span", { className: "text-xs font-medium text-primary-600 dark:text-primary-400
|
|
91670
|
+
/* @__PURE__ */ f.jsx("span", { className: "text-xs font-medium text-primary-600 dark:text-primary-400 cursor-pointer whitespace-nowrap", title: e.replacement, children: e.replacement })
|
|
91678
91671
|
] }),
|
|
91679
91672
|
/* @__PURE__ */ f.jsxs("div", { className: "flex items-center gap-1", children: [
|
|
91680
91673
|
/* @__PURE__ */ f.jsxs("span", { className: "bg-neutral-100 dark:bg-neutral-800 rounded-lg px-1.5 py-0.5 text-xs font-medium text-neutral-600 dark:text-neutral-400", children: [
|
|
@@ -92454,7 +92447,11 @@ const rG = ({
|
|
|
92454
92447
|
] })
|
|
92455
92448
|
] });
|
|
92456
92449
|
}, SG = ({ position: e = "right", currentMode: t }) => {
|
|
92457
|
-
const [n, r] = W(!1), { isDarkMode: i } = m_()
|
|
92450
|
+
const [n, r] = W(!1), { isDarkMode: i } = m_();
|
|
92451
|
+
ce(() => {
|
|
92452
|
+
r(!1);
|
|
92453
|
+
}, [t]);
|
|
92454
|
+
const {
|
|
92458
92455
|
downloadTextFile: o,
|
|
92459
92456
|
downloadJsonFile: a,
|
|
92460
92457
|
downloadMarkdownFile: s,
|