hxy-editor 0.4.17 → 0.4.18
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/pd-editor.js +4 -2
- package/dist/pd-editor.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/pd-editor.js
CHANGED
|
@@ -264135,7 +264135,7 @@ function Ijt(e, t) {
|
|
|
264135
264135
|
s: {
|
|
264136
264136
|
cl: { rgb: "#3370ff" },
|
|
264137
264137
|
ul: { s: 1 },
|
|
264138
|
-
tb:
|
|
264138
|
+
tb: 2
|
|
264139
264139
|
},
|
|
264140
264140
|
custom: {
|
|
264141
264141
|
...t?.custom,
|
|
@@ -264145,7 +264145,9 @@ function Ijt(e, t) {
|
|
|
264145
264145
|
}
|
|
264146
264146
|
function Ljt(e) {
|
|
264147
264147
|
let t = e?.custom?.hxyAttachment;
|
|
264148
|
-
|
|
264148
|
+
if (t?.version !== 1 || !K9(t.url) || !G9(t.name)) return null;
|
|
264149
|
+
let n = Njt(t.name), r = `${G9(t.name)?.[0] || "📎"} ${String(t.name).replace(/[\u0000-\u001f\u007f]/g, " ")}`;
|
|
264150
|
+
return e.f || e.p || e.v !== n && e.v !== r ? null : t;
|
|
264149
264151
|
}
|
|
264150
264152
|
function Rjt(e, t) {
|
|
264151
264153
|
let n = G9(e.name)?.[1] || "";
|