Add platform/mattermost-redux package for publishing (#30020)

* Replace key-mirror with mattermost-redux/utils/key_mirror

At some point, we made our own version for mattermost-redux with proper type definitions
but we seem to have forgotten to use that everywhere in the web app.

* Remove Rudder reference from mattermost-redux

* Remove Giphy API from mattermost-redux

* Remove mattermost-webapp refernces from Client and Types packages

* Create platform/mattermost-redux without moving its source files

* Don't build mattermost-redux automatically

* Copy changes to package.json from platform/mattermost-redux to other packages

The changes to the typesVersions and exports fields are to make it
easier for tooling to know to make it so that importing a folder imports
the index file inside that folder since that's not standard to all
CommonJS packages.

The added type field is just a good pracice.

* Explicitly type re-exported selectors

For some reason, the types generated by the previous version of this didn't work
when mattermost-redux was built as a standalone package. Explicitly typing these
is a bit more verbose, but it fixes things.

* Fix import loop in selectors introduced by last commit

* Update package versions to 10.6.0

* Add explicit dependencies to mattermost-redux package

* Remove check and run scripts from mattermost-redux package

* Revert changes to NOTICE.txt
Этот коммит содержится в:
Harrison Healey
2025-02-04 17:26:46 -05:00
коммит произвёл GitHub
родитель f52e08754c
Коммит 86aad9d0a5
23 изменённых файлов: 205 добавлений и 78 удалений

47
webapp/package-lock.json сгенерированный
Просмотреть файл

@@ -11,6 +11,7 @@
"platform/client",
"platform/components",
"platform/eslint-plugin",
"platform/mattermost-redux",
"platform/types"
],
"dependencies": {
@@ -55,7 +56,7 @@
},
"channels": {
"name": "mattermost-webapp",
"version": "9.3.0",
"version": "10.6.0",
"dependencies": {
"@floating-ui/react": "0.26.28",
"@giphy/js-fetch-api": "5.1.0",
@@ -97,7 +98,6 @@
"inobounce": "0.2.1",
"ipaddr.js": "2.1.0",
"katex": "0.16.10",
"key-mirror": "1.0.1",
"localforage": "1.10.0",
"localforage-observable": "2.1.1",
"lodash": "4.17.21",
@@ -6006,7 +6006,6 @@
"version": "3.2.3",
"resolved": "https://registry.npmjs.org/@redux-devtools/extension/-/extension-3.2.3.tgz",
"integrity": "sha512-y90IIqdQF6kIkP4KfBCfiFrnu9KMrEPUmcnb5A3v12tjfwRJUXecX8vCEbFqqJLjOomvVmis0Aal7QdFjk6CRQ==",
"dev": true,
"dependencies": {
"@babel/runtime": "^7.18.3",
"immutable": "^4.0.0"
@@ -15594,8 +15593,7 @@
"node_modules/immutable": {
"version": "4.3.7",
"resolved": "https://registry.npmjs.org/immutable/-/immutable-4.3.7.tgz",
"integrity": "sha512-1hqclzwYwjRDFLjcFxOM5AYkkG0rpFPpr1RLPMEuGczoS7YA8gLhy8SWXYRAA/XwfEHpfo3cw5JGioS32fnMRw==",
"dev": true
"integrity": "sha512-1hqclzwYwjRDFLjcFxOM5AYkkG0rpFPpr1RLPMEuGczoS7YA8gLhy8SWXYRAA/XwfEHpfo3cw5JGioS32fnMRw=="
},
"node_modules/import-fresh": {
"version": "3.3.0",
@@ -20284,11 +20282,6 @@
"node": ">= 12"
}
},
"node_modules/key-mirror": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/key-mirror/-/key-mirror-1.0.1.tgz",
"integrity": "sha512-qRqYvj2S1VGEr+KnxwSX74xKCfnhZsLHUwvsGYC1OP0vaV/eYzS8jpEO/lFGPAJPmzwCm/JQmxabpoVMdOK76g=="
},
"node_modules/keycode": {
"version": "2.2.1",
"resolved": "https://registry.npmjs.org/keycode/-/keycode-2.2.1.tgz",
@@ -20688,6 +20681,10 @@
"url": "https://github.com/sponsors/wooorm"
}
},
"node_modules/mattermost-redux": {
"resolved": "platform/mattermost-redux",
"link": true
},
"node_modules/mattermost-webapp": {
"resolved": "channels",
"link": true
@@ -28180,7 +28177,7 @@
},
"platform/client": {
"name": "@mattermost/client",
"version": "9.3.0",
"version": "10.6.0",
"license": "MIT",
"devDependencies": {
"@types/jest": "28.1.8",
@@ -28188,7 +28185,6 @@
"typescript": "^5.0.0"
},
"peerDependencies": {
"@mattermost/types": "^9.3.0 || ^10.0.0",
"typescript": "^4.3.0 || ^5.0.0"
},
"peerDependenciesMeta": {
@@ -29642,9 +29638,34 @@
}
}
},
"platform/mattermost-redux": {
"version": "10.6.0",
"license": "MIT",
"dependencies": {
"@mattermost/client": "10.6.0",
"@mattermost/types": "10.6.0",
"@redux-devtools/extension": "^3.2.3",
"lodash": "^4.17.21",
"moment-timezone": "^0.5.38",
"redux": "^4.2.0",
"redux-batched-actions": "^0.5.0",
"redux-thunk": "^2.4.2",
"serialize-error": "^11.0.3",
"shallow-equals": "^1.0.0",
"timezones.json": "^1.7.1"
},
"peerDependencies": {
"typescript": "^4.3.0 || ^5.0.0"
},
"peerDependenciesMeta": {
"typescript": {
"optional": true
}
}
},
"platform/types": {
"name": "@mattermost/types",
"version": "9.3.0",
"version": "10.6.0",
"license": "MIT",
"devDependencies": {
"typescript": "^5.0.0"