Skip to content

Commit 54ebb62

Browse files
committed
feat: upgrade tributejs package
1 parent 92f70fc commit 54ebb62

File tree

5 files changed

+3838
-2990
lines changed

5 files changed

+3838
-2990
lines changed

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@appfolio:registry=https://npm.pkg.github.com
2+
//npm.pkg.github.com/:_authToken=${GITHUB_NPM_TOKEN}

.yarnrc.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,9 @@ plugins:
55
spec: "@yarnpkg/plugin-version"
66

77
yarnPath: .yarn/releases/yarn-3.2.2.cjs
8+
9+
npmScopes:
10+
appfolio:
11+
npmAlwaysAuth: true
12+
npmAuthToken: "${GITHUB_NPM_TOKEN}"
13+
npmRegistryServer: "https://npm.pkg.github.com"

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": "5.1.4",
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)