@ni/nimble-components 20.2.2 → 20.2.3
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 +1 -17
- 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 +0 -1
- package/dist/esm/rich-text-editor/index.js +0 -16
- package/dist/esm/rich-text-editor/index.js.map +1 -1
- package/dist/esm/src/rich-text-editor/index.d.ts +0 -1
- package/package.json +1 -1
|
@@ -16288,7 +16288,7 @@
|
|
|
16288
16288
|
|
|
16289
16289
|
/**
|
|
16290
16290
|
* Do not edit directly
|
|
16291
|
-
* Generated on Wed, 06 Sep 2023
|
|
16291
|
+
* Generated on Wed, 06 Sep 2023 14:38:58 GMT
|
|
16292
16292
|
*/
|
|
16293
16293
|
|
|
16294
16294
|
const Information100DarkUi = "#a46eff";
|
|
@@ -56380,7 +56380,6 @@ img.ProseMirror-separator {
|
|
|
56380
56380
|
*/
|
|
56381
56381
|
boldButtonClick() {
|
|
56382
56382
|
this.tiptapEditor.chain().focus().toggleBold().run();
|
|
56383
|
-
this.forceFocusEditor();
|
|
56384
56383
|
}
|
|
56385
56384
|
/**
|
|
56386
56385
|
* Toggle the bold mark and focus back to the editor
|
|
@@ -56389,7 +56388,6 @@ img.ProseMirror-separator {
|
|
|
56389
56388
|
boldButtonKeyDown(event) {
|
|
56390
56389
|
if (this.keyActivatesButton(event)) {
|
|
56391
56390
|
this.tiptapEditor.chain().focus().toggleBold().run();
|
|
56392
|
-
this.forceFocusEditor();
|
|
56393
56391
|
return false;
|
|
56394
56392
|
}
|
|
56395
56393
|
return true;
|
|
@@ -56400,7 +56398,6 @@ img.ProseMirror-separator {
|
|
|
56400
56398
|
*/
|
|
56401
56399
|
italicsButtonClick() {
|
|
56402
56400
|
this.tiptapEditor.chain().focus().toggleItalic().run();
|
|
56403
|
-
this.forceFocusEditor();
|
|
56404
56401
|
}
|
|
56405
56402
|
/**
|
|
56406
56403
|
* Toggle the italics mark and focus back to the editor
|
|
@@ -56409,7 +56406,6 @@ img.ProseMirror-separator {
|
|
|
56409
56406
|
italicsButtonKeyDown(event) {
|
|
56410
56407
|
if (this.keyActivatesButton(event)) {
|
|
56411
56408
|
this.tiptapEditor.chain().focus().toggleItalic().run();
|
|
56412
|
-
this.forceFocusEditor();
|
|
56413
56409
|
return false;
|
|
56414
56410
|
}
|
|
56415
56411
|
return true;
|
|
@@ -56420,7 +56416,6 @@ img.ProseMirror-separator {
|
|
|
56420
56416
|
*/
|
|
56421
56417
|
bulletListButtonClick() {
|
|
56422
56418
|
this.tiptapEditor.chain().focus().toggleBulletList().run();
|
|
56423
|
-
this.forceFocusEditor();
|
|
56424
56419
|
}
|
|
56425
56420
|
/**
|
|
56426
56421
|
* Toggle the unordered list node and focus back to the editor
|
|
@@ -56429,7 +56424,6 @@ img.ProseMirror-separator {
|
|
|
56429
56424
|
bulletListButtonKeyDown(event) {
|
|
56430
56425
|
if (this.keyActivatesButton(event)) {
|
|
56431
56426
|
this.tiptapEditor.chain().focus().toggleBulletList().run();
|
|
56432
|
-
this.forceFocusEditor();
|
|
56433
56427
|
return false;
|
|
56434
56428
|
}
|
|
56435
56429
|
return true;
|
|
@@ -56440,7 +56434,6 @@ img.ProseMirror-separator {
|
|
|
56440
56434
|
*/
|
|
56441
56435
|
numberedListButtonClick() {
|
|
56442
56436
|
this.tiptapEditor.chain().focus().toggleOrderedList().run();
|
|
56443
|
-
this.forceFocusEditor();
|
|
56444
56437
|
}
|
|
56445
56438
|
/**
|
|
56446
56439
|
* Toggle the ordered list node and focus back to the editor
|
|
@@ -56449,7 +56442,6 @@ img.ProseMirror-separator {
|
|
|
56449
56442
|
numberedListButtonKeyDown(event) {
|
|
56450
56443
|
if (this.keyActivatesButton(event)) {
|
|
56451
56444
|
this.tiptapEditor.chain().focus().toggleOrderedList().run();
|
|
56452
|
-
this.forceFocusEditor();
|
|
56453
56445
|
return false;
|
|
56454
56446
|
}
|
|
56455
56447
|
return true;
|
|
@@ -56670,14 +56662,6 @@ img.ProseMirror-separator {
|
|
|
56670
56662
|
}
|
|
56671
56663
|
});
|
|
56672
56664
|
}
|
|
56673
|
-
// 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).
|
|
56674
|
-
// But once any of the toolbar button is clicked, editor internally has its focus but the blinking caret disappears.
|
|
56675
|
-
// As a workaround, manually triggering blur and setting focus on editor makes the blinking caret to re-appear.
|
|
56676
|
-
// Mozilla issue https://bugzilla.mozilla.org/show_bug.cgi?id=1496769 tracks removal of this workaround.
|
|
56677
|
-
forceFocusEditor() {
|
|
56678
|
-
this.tiptapEditor.commands.blur();
|
|
56679
|
-
this.tiptapEditor.commands.focus();
|
|
56680
|
-
}
|
|
56681
56665
|
}
|
|
56682
56666
|
__decorate$1([
|
|
56683
56667
|
attr({ mode: 'boolean' })
|