@ni/nimble-components 20.1.19 → 20.1.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/all-components-bundle.js +17 -1
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +2 -2
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/rich-text-editor/index.d.ts +1 -0
- package/dist/esm/rich-text-editor/index.js +16 -0
- package/dist/esm/rich-text-editor/index.js.map +1 -1
- package/dist/esm/rich-text-editor/testing/rich-text-editor.pageobject.d.ts +1 -0
- package/dist/esm/rich-text-editor/testing/rich-text-editor.pageobject.js +5 -0
- package/dist/esm/rich-text-editor/testing/rich-text-editor.pageobject.js.map +1 -1
- package/dist/esm/src/rich-text-editor/index.d.ts +1 -0
- package/dist/esm/src/rich-text-editor/testing/rich-text-editor.pageobject.d.ts +1 -0
- package/package.json +1 -1
|
@@ -16288,7 +16288,7 @@
|
|
|
16288
16288
|
|
|
16289
16289
|
/**
|
|
16290
16290
|
* Do not edit directly
|
|
16291
|
-
* Generated on Thu, 31 Aug 2023
|
|
16291
|
+
* Generated on Thu, 31 Aug 2023 18:57:21 GMT
|
|
16292
16292
|
*/
|
|
16293
16293
|
|
|
16294
16294
|
const Information100DarkUi = "#a46eff";
|
|
@@ -56286,6 +56286,7 @@ img.ProseMirror-separator {
|
|
|
56286
56286
|
*/
|
|
56287
56287
|
boldButtonClick() {
|
|
56288
56288
|
this.tiptapEditor.chain().focus().toggleBold().run();
|
|
56289
|
+
this.forceFocusEditor();
|
|
56289
56290
|
}
|
|
56290
56291
|
/**
|
|
56291
56292
|
* Toggle the bold mark and focus back to the editor
|
|
@@ -56294,6 +56295,7 @@ img.ProseMirror-separator {
|
|
|
56294
56295
|
boldButtonKeyDown(event) {
|
|
56295
56296
|
if (this.keyActivatesButton(event)) {
|
|
56296
56297
|
this.tiptapEditor.chain().focus().toggleBold().run();
|
|
56298
|
+
this.forceFocusEditor();
|
|
56297
56299
|
return false;
|
|
56298
56300
|
}
|
|
56299
56301
|
return true;
|
|
@@ -56304,6 +56306,7 @@ img.ProseMirror-separator {
|
|
|
56304
56306
|
*/
|
|
56305
56307
|
italicsButtonClick() {
|
|
56306
56308
|
this.tiptapEditor.chain().focus().toggleItalic().run();
|
|
56309
|
+
this.forceFocusEditor();
|
|
56307
56310
|
}
|
|
56308
56311
|
/**
|
|
56309
56312
|
* Toggle the italics mark and focus back to the editor
|
|
@@ -56312,6 +56315,7 @@ img.ProseMirror-separator {
|
|
|
56312
56315
|
italicsButtonKeyDown(event) {
|
|
56313
56316
|
if (this.keyActivatesButton(event)) {
|
|
56314
56317
|
this.tiptapEditor.chain().focus().toggleItalic().run();
|
|
56318
|
+
this.forceFocusEditor();
|
|
56315
56319
|
return false;
|
|
56316
56320
|
}
|
|
56317
56321
|
return true;
|
|
@@ -56322,6 +56326,7 @@ img.ProseMirror-separator {
|
|
|
56322
56326
|
*/
|
|
56323
56327
|
bulletListButtonClick() {
|
|
56324
56328
|
this.tiptapEditor.chain().focus().toggleBulletList().run();
|
|
56329
|
+
this.forceFocusEditor();
|
|
56325
56330
|
}
|
|
56326
56331
|
/**
|
|
56327
56332
|
* Toggle the unordered list node and focus back to the editor
|
|
@@ -56330,6 +56335,7 @@ img.ProseMirror-separator {
|
|
|
56330
56335
|
bulletListButtonKeyDown(event) {
|
|
56331
56336
|
if (this.keyActivatesButton(event)) {
|
|
56332
56337
|
this.tiptapEditor.chain().focus().toggleBulletList().run();
|
|
56338
|
+
this.forceFocusEditor();
|
|
56333
56339
|
return false;
|
|
56334
56340
|
}
|
|
56335
56341
|
return true;
|
|
@@ -56340,6 +56346,7 @@ img.ProseMirror-separator {
|
|
|
56340
56346
|
*/
|
|
56341
56347
|
numberedListButtonClick() {
|
|
56342
56348
|
this.tiptapEditor.chain().focus().toggleOrderedList().run();
|
|
56349
|
+
this.forceFocusEditor();
|
|
56343
56350
|
}
|
|
56344
56351
|
/**
|
|
56345
56352
|
* Toggle the ordered list node and focus back to the editor
|
|
@@ -56348,6 +56355,7 @@ img.ProseMirror-separator {
|
|
|
56348
56355
|
numberedListButtonKeyDown(event) {
|
|
56349
56356
|
if (this.keyActivatesButton(event)) {
|
|
56350
56357
|
this.tiptapEditor.chain().focus().toggleOrderedList().run();
|
|
56358
|
+
this.forceFocusEditor();
|
|
56351
56359
|
return false;
|
|
56352
56360
|
}
|
|
56353
56361
|
return true;
|
|
@@ -56564,6 +56572,14 @@ img.ProseMirror-separator {
|
|
|
56564
56572
|
}
|
|
56565
56573
|
});
|
|
56566
56574
|
}
|
|
56575
|
+
// In Firefox browser, once the editor gets focused, the blinking caret will be visible until we click format buttons (Bold, Italic ...) in the Firefox browser (changing focus).
|
|
56576
|
+
// But once any of the toolbar button is clicked, editor internally has its focus but the blinking caret disappears.
|
|
56577
|
+
// As a workaround, manually triggering blur and setting focus on editor makes the blinking caret to re-appear.
|
|
56578
|
+
// Mozilla issue https://bugzilla.mozilla.org/show_bug.cgi?id=1496769 tracks removal of this workaround.
|
|
56579
|
+
forceFocusEditor() {
|
|
56580
|
+
this.tiptapEditor.commands.blur();
|
|
56581
|
+
this.tiptapEditor.commands.focus();
|
|
56582
|
+
}
|
|
56567
56583
|
}
|
|
56568
56584
|
__decorate$1([
|
|
56569
56585
|
attr({ mode: 'boolean' })
|