Skip to content

Commit 3f54843

Browse files
committed
feat: upgrade tributejs package
1 parent 92f70fc commit 3f54843

File tree

3 files changed

+3810
-2971
lines changed

3 files changed

+3810
-2971
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"react-dom": ">= 16.8"
4343
},
4444
"dependencies": {
45+
"@appfolio/tributejs": "github:appfolio/tributejs#sfalTestBranch",
4546
"@fortawesome/fontawesome-free": "^6.2.0",
4647
"@fortawesome/fontawesome-svg-core": "^6.2.0",
4748
"@popperjs/core": "^2.10.1",
@@ -78,7 +79,6 @@
7879
"storybook-source-link": "^2.0.8",
7980
"styled-jsx": "^5.1.1",
8081
"text-mask-addons": "^3.8.0",
81-
"tributejs": "^5.1.3",
8282
"use-deep-compare-effect": "^1.8.1",
8383
"use-local-storage-state": "^4.0.0",
8484
"uuid": "^8.3.1"

src/components/Note/EditableNoteMentions.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { FC, useEffect, useRef, useState } from 'react';
2-
import { TributeItem } from 'tributejs';
2+
import { TributeItem } from '@appfolio/tributejs';
33
import Alert from '../Alert/Alert';
44
import Button from '../Button/Button';
55
import ButtonToolbar from '../Button/ButtonToolbar';
@@ -65,7 +65,7 @@ const EditableNoteMentions: FC<EditableNoteMentionsProps> = ({
6565
useEffect(() => {
6666
(async () => {
6767
if (mentionableUsers.length > 0 && ref.current) {
68-
const Tribute = (await import('tributejs')).default;
68+
const Tribute = (await import('@appfolio/tributejs')).default;
6969
const tribute = new Tribute({
7070
allowSpaces: true,
7171
menuItemTemplate(item: TributeItem<any>) {

0 commit comments

Comments
 (0)