Felicio Mununga ca0d508f7f
Add Activity Center (#312)
* add activityCenter.ts

* use activityCenter.ts

* add "Launch via Vite Node"

* remove comments

* add comments

* type hook

* reverse order of notifications

* remove `activityCenter` from `provider.tsx`

* set `count`'s default value

* ref `ChatMessage` by id instead of object reference

* Revert "ref `ChatMessage` by id instead of object reference"

This reverts commit 1284386d22146345d1778b92bf104b49781bd4cb.

* add badge `totalCount`

* add `@radix-ui/react-tabs`

* skip non-mentions

* update comments

* add `member` to `ChatMessage`

* add `MarkAllAsReadIcon`

* add `40` avatar variant

* add `initialsCount` to `Avatar`

* add `TinyReplyIcon`

* use `Popover`

* move components

* move components

* wip

* ignore clicks on tags themselves

* add root route

* use chat display name

* fix icons

* use `asChild` for tabs

* remove `vertical`

* use `value` and `onValueChange`

* use active state with `compoundVariants`

* use `&[data-state]...` instead of `compoundVarinats` and `active` prop

* fixup `chatDisplayName`

* postion badge

* prevent dragging of the whole page in either direction

* add tooltips

* change message's background on hover

* change navigation style

* add `category` to `removeNotifications`

* prevent deleting of messages that are not mentions or replies from activity center

* show members sidebar by default

* fix members layout

* add comment

* add `date-fns`

* add date separator

* comment

* move `Badge` to `/system`

* move `Tag` to `/system`

* comment `Text`

* replace `Link` for `useNavigate`

* move `Activity` to `/system`

* comment

* export `Notification`

* update fixtures in `activityCenter`

* remove fixtures

* movet `Tabs` to `/system`

* update `mapChatMessage`

* update `.eslintignore`

* resolve typecheck errors

* update `.prettierignore`

* resolve formatting error

* upgrade tooltip

* use `scrollIntoView`

* remove comments

* rename `close` to `onNavigateChange`

* revert scrolling changes in `/member-sidebar`

* rename members label from `Online` to `All`

* rename `initialsCount` and use union

* rename `MarkAllAsReadIcon`

* rename `selected`

* fix typo

* revert formatting

* close `Avatar`

* use `css` where possible without changing elements

* extract props types to interfaces

* rename `ActivityCenter`

* remove `overflow`

* replace `style` for not yet stitched elements

* revert global style changes
2022-10-07 20:02:17 +02:00

84 lines
2.4 KiB
JSON

{
"name": "@status-im/react",
"version": "0.1.0-alpha.2",
"license": "MIT OR Apache-2.0",
"type": "module",
"exports": {
"types": "./dist/types/index.d.ts",
"import": "./dist/index.es.js",
"default": "./dist/index.es.js"
},
"module": "dist/index.es.js",
"types": "dist/types/index.d.ts",
"repository": {
"url": "https://github.com/status-im/status-web.git",
"directory": "packages/status-react",
"type": "git"
},
"bugs": {
"url": "https://github.com/status-im/status-web/issues"
},
"scripts": {
"dev": "vite build --watch --mode development",
"build": "vite build",
"postbuild": "yarn typegen",
"#test": "vitest",
"typecheck": "tsc",
"typegen": "tsc --noEmit false --emitDeclarationOnly || true",
"lint": "eslint src",
"format": "prettier --write src",
"clean": "rm -rf dist node_modules .turbo"
},
"dependencies": {
"@hcaptcha/react-hcaptcha": "^1.0.0",
"@radix-ui/react-accessible-icon": "^0.1.4",
"@radix-ui/react-alert-dialog": "^0.1.7",
"@radix-ui/react-checkbox": "^0.1.5",
"@radix-ui/react-collapsible": "^0.1.6",
"@radix-ui/react-compose-refs": "^0.1.0",
"@radix-ui/react-context-menu": "^0.1.6",
"@radix-ui/react-dialog": "^0.1.7",
"@radix-ui/react-dropdown-menu": "^0.1.6",
"@radix-ui/react-label": "^0.1.5",
"@radix-ui/react-popover": "^0.1.6",
"@radix-ui/react-separator": "^0.1.4",
"@radix-ui/react-tabs": "^1.0.0",
"@radix-ui/react-toggle-group": "^0.1.5",
"@radix-ui/react-tooltip": "^1.0.0",
"@radix-ui/react-visually-hidden": "^0.1.4",
"@status-im/js": "0.1.0-alpha.2",
"@stitches/react": "^1.2.8",
"date-fns": "^2.29.3",
"emoji-mart": "^3.0.1",
"html-entities": "^2.3.2",
"qrcode.react": "^3.0.1",
"react-content-loader": "^6.2.0",
"react-is": "^17.0.2",
"react-router-dom": "^6.3.0",
"tinykeys": "^1.4.0"
},
"devDependencies": {
"@types/emoji-mart": "^3.0.6",
"@types/hcaptcha__react-hcaptcha": "^0.1.5",
"@types/node": "^16.9.6",
"@types/react": "^17.0.16",
"@vitejs/plugin-react": "^1.3.2",
"happy-dom": "^5.3.1"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0",
"react-dom": "^16.8.0 || ^17.0.0"
},
"files": [
"dist/",
"!dist/**/*.map",
"!dist/tsconfig.tsbuildinfo",
"LICENSE-MIT",
"LICENSE-APACHE-v2",
"package.json"
],
"publishConfig": {
"access": "public"
}
}