@ni/nimble-components 20.2.13 → 20.2.14
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.
|
@@ -16288,7 +16288,7 @@
|
|
|
16288
16288
|
|
|
16289
16289
|
/**
|
|
16290
16290
|
* Do not edit directly
|
|
16291
|
-
* Generated on
|
|
16291
|
+
* Generated on Thu, 14 Sep 2023 13:03:32 GMT
|
|
16292
16292
|
*/
|
|
16293
16293
|
|
|
16294
16294
|
const Information100DarkUi = "#a46eff";
|
|
@@ -55534,7 +55534,7 @@ img.ProseMirror-separator {
|
|
|
55534
55534
|
toDOM(node) { return ["ul", { "data-tight": node.attrs.tight ? "true" : null }, 0]; }
|
|
55535
55535
|
},
|
|
55536
55536
|
list_item: {
|
|
55537
|
-
content: "
|
|
55537
|
+
content: "block+",
|
|
55538
55538
|
defining: true,
|
|
55539
55539
|
parseDOM: [{ tag: "li" }],
|
|
55540
55540
|
toDOM() { return ["li", 0]; }
|
|
@@ -55570,13 +55570,20 @@ img.ProseMirror-separator {
|
|
|
55570
55570
|
},
|
|
55571
55571
|
marks: {
|
|
55572
55572
|
em: {
|
|
55573
|
-
parseDOM: [
|
|
55574
|
-
{
|
|
55573
|
+
parseDOM: [
|
|
55574
|
+
{ tag: "i" }, { tag: "em" },
|
|
55575
|
+
{ style: "font-style=italic" },
|
|
55576
|
+
{ style: "font-style=normal", clearMark: m => m.type.name == "em" }
|
|
55577
|
+
],
|
|
55575
55578
|
toDOM() { return ["em"]; }
|
|
55576
55579
|
},
|
|
55577
55580
|
strong: {
|
|
55578
|
-
parseDOM: [
|
|
55579
|
-
{
|
|
55581
|
+
parseDOM: [
|
|
55582
|
+
{ tag: "strong" },
|
|
55583
|
+
{ tag: "b", getAttrs: (node) => node.style.fontWeight != "normal" && null },
|
|
55584
|
+
{ style: "font-weight=400", clearMark: m => m.type.name == "strong" },
|
|
55585
|
+
{ style: "font-weight", getAttrs: (value) => /^(bold(er)?|[5-9]\d{2,})$/.test(value) && null }
|
|
55586
|
+
],
|
|
55580
55587
|
toDOM() { return ["strong"]; }
|
|
55581
55588
|
},
|
|
55582
55589
|
link: {
|
|
@@ -56134,16 +56141,27 @@ img.ProseMirror-separator {
|
|
|
56134
56141
|
trailing = "";
|
|
56135
56142
|
// If whitespace has to be expelled from the node, adjust
|
|
56136
56143
|
// leading and trailing accordingly.
|
|
56144
|
+
if (node && node.isText && marks.some(mark => {
|
|
56145
|
+
let info = this.marks[mark.type.name];
|
|
56146
|
+
return info && info.expelEnclosingWhitespace && !mark.isInSet(active);
|
|
56147
|
+
})) {
|
|
56148
|
+
let [_, lead, rest] = /^(\s*)(.*)$/m.exec(node.text);
|
|
56149
|
+
if (lead) {
|
|
56150
|
+
leading += lead;
|
|
56151
|
+
node = rest ? node.withText(rest) : null;
|
|
56152
|
+
if (!node)
|
|
56153
|
+
marks = active;
|
|
56154
|
+
}
|
|
56155
|
+
}
|
|
56137
56156
|
if (node && node.isText && marks.some(mark => {
|
|
56138
56157
|
let info = this.marks[mark.type.name];
|
|
56139
56158
|
return info && info.expelEnclosingWhitespace &&
|
|
56140
|
-
|
|
56159
|
+
(index == parent.childCount - 1 || !mark.isInSet(parent.child(index + 1).marks));
|
|
56141
56160
|
})) {
|
|
56142
|
-
let [_,
|
|
56143
|
-
|
|
56144
|
-
|
|
56145
|
-
|
|
56146
|
-
node = inner ? node.withText(inner) : null;
|
|
56161
|
+
let [_, rest, trail] = /^(.*?)(\s*)$/m.exec(node.text);
|
|
56162
|
+
if (trail) {
|
|
56163
|
+
trailing = trail;
|
|
56164
|
+
node = rest ? node.withText(rest) : null;
|
|
56147
56165
|
if (!node)
|
|
56148
56166
|
marks = active;
|
|
56149
56167
|
}
|
|
@@ -56188,6 +56206,7 @@ img.ProseMirror-separator {
|
|
|
56188
56206
|
let add = marks[active.length];
|
|
56189
56207
|
active.push(add);
|
|
56190
56208
|
this.text(this.markString(add, true, parent, index), false);
|
|
56209
|
+
this.atBlockStart = false;
|
|
56191
56210
|
}
|
|
56192
56211
|
// Render the node. Special case code marks, since their content
|
|
56193
56212
|
// may not be escaped.
|
|
@@ -56196,6 +56215,16 @@ img.ProseMirror-separator {
|
|
|
56196
56215
|
this.markString(inner, false, parent, index + 1), false);
|
|
56197
56216
|
else
|
|
56198
56217
|
this.render(node, parent, index);
|
|
56218
|
+
this.atBlockStart = false;
|
|
56219
|
+
}
|
|
56220
|
+
// After the first non-empty text node is rendered, the end of output
|
|
56221
|
+
// is no longer at block start.
|
|
56222
|
+
//
|
|
56223
|
+
// FIXME: If a non-text node writes something to the output for this
|
|
56224
|
+
// block, the end of output is also no longer at block start. But how
|
|
56225
|
+
// can we detect that?
|
|
56226
|
+
if ((node === null || node === void 0 ? void 0 : node.isText) && node.nodeSize > 0) {
|
|
56227
|
+
this.atBlockStart = false;
|
|
56199
56228
|
}
|
|
56200
56229
|
};
|
|
56201
56230
|
parent.forEach(progress);
|
|
@@ -56231,7 +56260,7 @@ img.ProseMirror-separator {
|
|
|
56231
56260
|
esc(str, startOfLine = false) {
|
|
56232
56261
|
str = str.replace(/[`*\\~\[\]_]/g, (m, i) => m == "_" && i > 0 && i + 1 < str.length && str[i - 1].match(/\w/) && str[i + 1].match(/\w/) ? m : "\\" + m);
|
|
56233
56262
|
if (startOfLine)
|
|
56234
|
-
str = str.replace(/^[
|
|
56263
|
+
str = str.replace(/^[\-*+>]/, "\\$&").replace(/^(\s*)(#{1,6})(\s|$)/, '$1\\$2$3').replace(/^(\s*\d+)\.\s/, "$1\\. ");
|
|
56235
56264
|
if (this.options.escapeExtraCharacters)
|
|
56236
56265
|
str = str.replace(this.options.escapeExtraCharacters, "\\$&");
|
|
56237
56266
|
return str;
|