Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { IMessage, IRoom, ISubscription, ITranslatedMessage } from '@rocket.chat/core-typings';
import { isThreadMessage, isRoomFederated } from '@rocket.chat/core-typings';
import { MessageToolbox, MessageToolboxItem } from '@rocket.chat/fuselage';
import { useFeaturePreview } from '@rocket.chat/ui-client';
import { useUser, useSettings, useTranslation } from '@rocket.chat/ui-contexts';
import { useQuery } from '@tanstack/react-query';
import type { ReactElement } from 'react';
Expand All @@ -10,7 +11,6 @@ import type { MessageActionContext } from '../../../../app/ui-utils/client/lib/M
import { MessageAction } from '../../../../app/ui-utils/client/lib/MessageAction';
import { sdk } from '../../../../app/utils/client/lib/SDKClient';
import { useEmojiPickerData } from '../../../contexts/EmojiPickerContext';
import { useFeaturePreview } from '../../../hooks/useFeaturePreview';
import EmojiElement from '../../../views/composer/EmojiPicker/EmojiElement';
import { useIsSelecting } from '../../../views/room/MessageList/contexts/SelectedMessagesContext';
import { useAutoTranslate } from '../../../views/room/MessageList/hooks/useAutoTranslate';
Expand Down
89 changes: 0 additions & 89 deletions apps/meteor/client/hooks/useFeaturePreviewList.spec.tsx

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Badge } from '@rocket.chat/fuselage';
import { useMutableCallback } from '@rocket.chat/fuselage-hooks';
import { defaultFeaturesPreview, useFeaturePreviewList } from '@rocket.chat/ui-client';
import { useLogout, useRoute, useTranslation } from '@rocket.chat/ui-contexts';
import React from 'react';

import type { GenericMenuItemProps } from '../../../components/GenericMenu/GenericMenuItem';
import { useFeaturePreviewList, defaultFeaturesPreview } from '../../../hooks/useFeaturePreviewList';

export const useAccountItems = (): GenericMenuItemProps[] => {
const t = useTranslation();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { Badge } from '@rocket.chat/fuselage';
import { useFeaturePreviewList } from '@rocket.chat/ui-client';
import { useTranslation } from '@rocket.chat/ui-contexts';
import React from 'react';

import { useFeaturePreviewList } from '../../../hooks/useFeaturePreviewList';

const AccountFeaturePreviewBadge = () => {
const t = useTranslation();
const { unseenFeatures } = useFeaturePreviewList();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ import {
StatesTitle,
Accordion,
} from '@rocket.chat/fuselage';
import type { FeaturePreviewProps } from '@rocket.chat/ui-client';
import { useFeaturePreviewList } from '@rocket.chat/ui-client';
import type { TranslationKey } from '@rocket.chat/ui-contexts';
import { useToastMessageDispatch, useTranslation, useEndpoint } from '@rocket.chat/ui-contexts';
import type { ChangeEvent } from 'react';
import React, { useEffect, Fragment } from 'react';
import { useForm } from 'react-hook-form';

import Page from '../../../components/Page';
import type { FeaturePreviewProps } from '../../../hooks/useFeaturePreviewList';
import { useFeaturePreviewList } from '../../../hooks/useFeaturePreviewList';

const AccountFeaturePreviewPage = () => {
const t = useTranslation();
Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/client/views/account/sidebarItems.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { defaultFeaturesPreview } from '@rocket.chat/ui-client';
import React from 'react';

import { hasPermission, hasAtLeastOnePermission } from '../../../app/authorization/client';
import { settings } from '../../../app/settings/client';
import { defaultFeaturesPreview } from '../../hooks/useFeaturePreviewList';
import { createSidebarItems } from '../../lib/createSidebarItems';
import AccountFeaturePreviewBadge from './featurePreview/AccountFeaturePreviewBadge';

Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/jest.client.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export default {

testEnvironment: 'jsdom',
modulePathIgnorePatterns: ['<rootDir>/dist/'],
testMatch: ['<rootDir>/client/hooks/**.spec.[jt]s?(x)', './client/hooks/**.spec.ts', '/client/hooks/**.spec.ts'],
testMatch: ['<rootDir>/client/hooks/**.spec.[jt]s?(x)', '<rootDir>/client/components/**.spec.[jt]s?(x)'],
transform: {
'^.+\\.(t|j)sx?$': '@swc/jest',
},
Expand Down
3 changes: 2 additions & 1 deletion apps/meteor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
"@playwright/test": "^1.22.2",
"@rocket.chat/eslint-config": "workspace:^",
"@rocket.chat/livechat": "workspace:^",
"@rocket.chat/mock-providers": "workspace:^",
"@settlin/spacebars-loader": "^1.0.9",
"@storybook/addon-essentials": "~6.5.16",
"@storybook/addon-interactions": "~6.5.16",
Expand Down Expand Up @@ -177,7 +178,7 @@
"eslint-plugin-you-dont-need-lodash-underscore": "~6.12.0",
"fast-glob": "^3.2.12",
"i18next": "^20.6.1",
"jest": "^29.6.1",
"jest": "~29.6.1",
"jsdom-global": "^3.0.2",
"mocha": "^9.2.2",
"nyc": "^15.1.0",
Expand Down
4 changes: 2 additions & 2 deletions ee/packages/api-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"devDependencies": {
"@swc/core": "^1.3.66",
"@swc/jest": "^0.2.26",
"@types/jest": "~29.5.2",
"@types/jest": "~29.5.3",
"@types/strict-uri-encode": "^2.0.0",
"eslint": "~8.43.0",
"jest": "~29.5.0",
"jest": "~29.6.1",
"jest-fetch-mock": "^3.0.3",
"ts-jest": "~29.0.5",
"typescript": "~5.1.3"
Expand Down
6 changes: 3 additions & 3 deletions ee/packages/ddp-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"devDependencies": {
"@swc/core": "^1.3.66",
"@swc/jest": "^0.2.26",
"@types/jest": "^29.5.2",
"@types/jest": "~29.5.3",
"@types/ws": "^8.5.5",
"eslint": "^8.43.0",
"jest": "^29.5.0",
"jest-environment-jsdom": "~29.5.0",
"jest": "~29.6.1",
"jest-environment-jsdom": "~29.6.1",
"jest-websocket-mock": "^2.4.0",
"typescript": "~5.1.3",
"ws": "^8.13.0"
Expand Down
4 changes: 2 additions & 2 deletions ee/packages/omnichannel-services/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"private": true,
"devDependencies": {
"@rocket.chat/eslint-config": "workspace:^",
"@types/jest": "~29.5.2",
"@types/jest": "~29.5.3",
"eslint": "~8.43.0",
"jest": "~29.5.0",
"jest": "~29.6.1",
"ts-jest": "~29.0.5",
"typescript": "~5.1.3"
},
Expand Down
8 changes: 4 additions & 4 deletions ee/packages/pdf-worker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "~13.4.0",
"@types/emojione": "^2.2.6",
"@types/jest": "~29.5.2",
"@types/react-dom": "^18.2.5",
"@types/jest": "~29.5.3",
"@types/react-dom": "~17.0.20",
"@types/testing-library__jest-dom": "~5.14.6",
"eslint": "~8.43.0",
"jest": "~29.5.0",
"jest-environment-jsdom": "~29.5.0",
"jest": "~29.6.1",
"jest-environment-jsdom": "~29.6.1",
"react-dom": "^18.2.0",
"ts-jest": "~29.0.5",
"typescript": "~5.1.3"
Expand Down
2 changes: 1 addition & 1 deletion ee/packages/presence/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@types/node": "^14.18.51",
"babel-jest": "^29.0.3",
"eslint": "~8.43.0",
"jest": "~29.5.0",
"jest": "~29.6.1",
"typescript": "~5.1.3"
},
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions ee/packages/ui-theming/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
"@storybook/manager-webpack4": "~6.5.16",
"@storybook/react": "~6.5.16",
"@storybook/testing-library": "~0.0.13",
"@types/jest": "~29.5.2",
"@types/jest": "~29.5.3",
"@types/react": "~17.0.62",
"eslint": "~8.43.0",
"eslint-plugin-anti-trojan-source": "~1.1.1",
"eslint-plugin-react": "~7.32.2",
"eslint-plugin-react-hooks": "~4.6.0",
"eslint-plugin-testing-library": "^5.11.0",
"jest": "~29.5.0",
"jest": "~29.6.1",
"react": "~17.0.2",
"react-docgen-typescript-plugin": "~1.0.5",
"ts-jest": "~29.0.5",
Expand Down
4 changes: 2 additions & 2 deletions packages/account-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"version": "0.0.1",
"private": true,
"devDependencies": {
"@types/jest": "~29.5.2",
"@types/jest": "~29.5.3",
"eslint": "~8.43.0",
"jest": "~29.5.0",
"jest": "~29.6.1",
"ts-jest": "~29.0.5",
"typescript": "~5.1.3"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/agenda/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
},
"devDependencies": {
"@types/debug": "^4.1.8",
"@types/jest": "~29.5.2",
"@types/jest": "~29.5.3",
"eslint": "~8.43.0",
"jest": "~29.5.0",
"jest": "~29.6.1",
"ts-jest": "~29.0.5",
"typescript": "~5.1.3"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/base64/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@typescript-eslint/eslint-plugin": "~5.60.0",
"@typescript-eslint/parser": "~5.60.0",
"eslint": "~8.43.0",
"jest": "~29.5.0",
"jest": "~29.6.1",
"ts-jest": "~29.0.5",
"typescript": "~5.1.3"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/cas-validate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"version": "0.0.1",
"private": true,
"devDependencies": {
"@types/jest": "~29.5.2",
"@types/jest": "~29.5.3",
"eslint": "~8.43.0",
"jest": "~29.5.0",
"jest": "~29.6.1",
"ts-jest": "~29.0.5",
"typescript": "~5.1.3"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/core-services/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
"@rocket.chat/eslint-config": "workspace:^",
"@types/babel__core": "^7",
"@types/babel__preset-env": "^7",
"@types/jest": "^29.5.1",
"@types/jest": "~29.5.3",
"babel-jest": "^29.5.0",
"eslint": "~8.43.0",
"jest": "^29.5.0",
"jest": "~29.6.1",
"mongodb": "^4.12.1",
"prettier": "~2.8.8",
"typescript": "~5.1.3"
Expand Down
4 changes: 2 additions & 2 deletions packages/cron/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"version": "0.0.1",
"private": true,
"devDependencies": {
"@types/jest": "^27.4.1",
"@types/jest": "~29.5.3",
"eslint": "^8.43.0",
"jest": "~29.5.0",
"jest": "~29.6.1",
"ts-jest": "~29.0.5",
"typescript": "~5.1.3"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/gazzodown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@swc/jest": "^0.2.26",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "~12.1.5",
"@types/jest": "~29.5.2",
"@types/jest": "~29.5.3",
"@types/katex": "~0.16.0",
"@types/react": "~17.0.62",
"@types/react-dom": "~17.0.20",
Expand All @@ -39,8 +39,8 @@
"eslint-plugin-react-hooks": "~4.6.0",
"eslint-plugin-storybook": "~0.6.12",
"identity-obj-proxy": "^3.0.0",
"jest": "~29.5.0",
"jest-environment-jsdom": "~29.5.0",
"jest": "~29.6.1",
"jest-environment-jsdom": "~29.6.1",
"katex": "~0.16.7",
"outdent": "^0.8.0",
"react-docgen-typescript-plugin": "~1.0.5",
Expand Down
4 changes: 2 additions & 2 deletions packages/i18n/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
"@babel/preset-typescript": "~7.22.5",
"@types/babel__core": "~7.20.1",
"@types/babel__preset-env": "~7.9.2",
"@types/jest": "^29.5.2",
"@types/jest": "~29.5.3",
"babel-jest": "^29.5.0",
"eslint": "^8.43.0",
"jest": "^29.5.0",
"jest": "~29.6.1",
"ts-jest": "~29.0.5",
"tsup": "^6.7.0",
"typescript": "~5.1.3"
Expand Down
4 changes: 2 additions & 2 deletions packages/log-format/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"devDependencies": {
"@types/chalk": "^2.2.0",
"@types/ejson": "^2.2.0",
"@types/jest": "^27.4.1",
"@types/jest": "~29.5.3",
"eslint": "^8.43.0",
"jest": "~29.5.0",
"jest": "~29.6.1",
"ts-jest": "~29.0.5",
"typescript": "~5.1.3"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/mock-providers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"devDependencies": {
"@rocket.chat/ui-contexts": "workspace:*",
"@tanstack/react-query": "^4.16.1",
"@types/jest": "^27.4.1",
"@types/jest": "~29.5.3",
"eslint": "^8.12.0",
"jest": "~29.5.0",
"jest": "~29.6.1",
"react": "~17.0.2",
"ts-jest": "~29.0.5",
"typescript": "~5.0.2"
Expand Down
Loading