1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-24 12:06:15 +01:00

[PM-8448] Create BItwarden Send UI library package (#9402)

* Create the send-ui library package

Create folder
Create package.json
Create jest config
Create tsconfig and tsconfig.spec.json
Create README
Add empty barrel file for exporting future members

* Register @bitwarden/send-ui with all clients and libs

* Register with eslint

* Fix linting issue with README

---------

Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
This commit is contained in:
Daniel James Smith 2024-05-29 12:26:40 +02:00 committed by GitHub
parent 42784b39f1
commit 86d6be3187
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
16 changed files with 76 additions and 0 deletions

View File

@ -218,6 +218,12 @@
"no-restricted-imports": ["error", { "patterns": ["@bitwarden/platform/*", "src/**/*"] }] "no-restricted-imports": ["error", { "patterns": ["@bitwarden/platform/*", "src/**/*"] }]
} }
}, },
{
"files": ["libs/tools/send/send-ui/src/**/*.ts"],
"rules": {
"no-restricted-imports": ["error", { "patterns": ["@bitwarden/send-ui/*", "src/**/*"] }]
}
},
{ {
"files": ["libs/vault/src/**/*.ts"], "files": ["libs/vault/src/**/*.ts"],
"rules": { "rules": {

View File

@ -21,6 +21,7 @@
./libs/platform/README.md ./libs/platform/README.md
./libs/tools/README.md ./libs/tools/README.md
./libs/tools/export/vault-export/README.md ./libs/tools/export/vault-export/README.md
./libs/tools/send/README.md
./libs/vault/README.md ./libs/vault/README.md
./README.md ./README.md
./LICENSE_BITWARDEN.txt ./LICENSE_BITWARDEN.txt

View File

@ -26,6 +26,7 @@
"@bitwarden/importer/core": ["../../libs/importer/src"], "@bitwarden/importer/core": ["../../libs/importer/src"],
"@bitwarden/importer/ui": ["../../libs/importer/src/components"], "@bitwarden/importer/ui": ["../../libs/importer/src/components"],
"@bitwarden/platform": ["../../libs/platform/src"], "@bitwarden/platform": ["../../libs/platform/src"],
"@bitwarden/send-ui": ["../../libs/tools/send/send-ui/src"],
"@bitwarden/vault": ["../../libs/vault/src"] "@bitwarden/vault": ["../../libs/vault/src"]
}, },
"useDefineForClassFields": false "useDefineForClassFields": false

View File

@ -25,6 +25,7 @@
"@bitwarden/importer/ui": ["../../libs/importer/src/components"], "@bitwarden/importer/ui": ["../../libs/importer/src/components"],
"@bitwarden/node/*": ["../../libs/node/src/*"], "@bitwarden/node/*": ["../../libs/node/src/*"],
"@bitwarden/platform": ["../../libs/platform/src"], "@bitwarden/platform": ["../../libs/platform/src"],
"@bitwarden/send-ui": ["../../libs/tools/send/send-ui/src"],
"@bitwarden/vault": ["../../libs/vault/src"] "@bitwarden/vault": ["../../libs/vault/src"]
}, },
"useDefineForClassFields": false "useDefineForClassFields": false

View File

@ -19,6 +19,7 @@
"@bitwarden/importer/core": ["../../libs/importer/src"], "@bitwarden/importer/core": ["../../libs/importer/src"],
"@bitwarden/importer/ui": ["../../libs/importer/src/components"], "@bitwarden/importer/ui": ["../../libs/importer/src/components"],
"@bitwarden/platform": ["../../libs/platform/src"], "@bitwarden/platform": ["../../libs/platform/src"],
"@bitwarden/send-ui": ["../../libs/tools/send/send-ui/src"],
"@bitwarden/vault": ["../../libs/vault/src"], "@bitwarden/vault": ["../../libs/vault/src"],
"@bitwarden/web-vault/*": ["src/*"] "@bitwarden/web-vault/*": ["src/*"]
} }

View File

@ -15,6 +15,7 @@
"../../libs/tools/export/vault-export/vault-export-core/src" "../../libs/tools/export/vault-export/vault-export-core/src"
], ],
"@bitwarden/vault-export-ui": ["../../libs/tools/export/vault-export/vault-export-core/src"], "@bitwarden/vault-export-ui": ["../../libs/tools/export/vault-export/vault-export-core/src"],
"@bitwarden/send-ui": ["../../libs/tools/send/send-ui/src"],
"@bitwarden/platform": ["../../libs/platform/src"], "@bitwarden/platform": ["../../libs/platform/src"],
"@bitwarden/vault": ["../../libs/vault/src"], "@bitwarden/vault": ["../../libs/vault/src"],
"@bitwarden/web-vault/*": ["../../apps/web/src/*"], "@bitwarden/web-vault/*": ["../../apps/web/src/*"],

View File

@ -19,6 +19,7 @@
"@bitwarden/importer/core": ["../../libs/importer/src"], "@bitwarden/importer/core": ["../../libs/importer/src"],
"@bitwarden/importer/ui": ["../../libs/importer/src/components"], "@bitwarden/importer/ui": ["../../libs/importer/src/components"],
"@bitwarden/platform": ["../../libs/platform/src"], "@bitwarden/platform": ["../../libs/platform/src"],
"@bitwarden/send-ui": ["../../libs/tools/send/send-ui/src"],
"@bitwarden/vault": ["../../libs/vault/src"], "@bitwarden/vault": ["../../libs/vault/src"],
"@bitwarden/web-vault/*": ["../../apps/web/src/*"], "@bitwarden/web-vault/*": ["../../apps/web/src/*"],

View File

@ -15,6 +15,7 @@
"@bitwarden/importer/core": ["../importer/src"], "@bitwarden/importer/core": ["../importer/src"],
"@bitwarden/importer/ui": ["../importer/src/components"], "@bitwarden/importer/ui": ["../importer/src/components"],
"@bitwarden/platform": ["../platform/src"], "@bitwarden/platform": ["../platform/src"],
"@bitwarden/send-ui": ["../tools/send/send-ui/src"],
"@bitwarden/node/*": ["../node/src/*"], "@bitwarden/node/*": ["../node/src/*"],
"@bitwarden/vault": ["../vault/src"] "@bitwarden/vault": ["../vault/src"]
} }

17
libs/tools/send/README.md Normal file
View File

@ -0,0 +1,17 @@
# Bitwarden Send
This folder contains 2 packages that can be used to create and modify Sends.
## semd-core
Package name: `@bitwarden/send-core`
Contains all types, models, and services for Bitwarden Send
Currently in use by the Bitwarden Web Vault, CLI, desktop app and browser extension
## send-ui
Package name: `@bitwarden/send-ui`
Contains all UI components used for Bitwarden Send

View File

@ -0,0 +1,13 @@
const { pathsToModuleNameMapper } = require("ts-jest");
const { compilerOptions } = require("../../../shared/tsconfig.libs");
/** @type {import('jest').Config} */
module.exports = {
testMatch: ["**/+(*.)+(spec).+(ts)"],
preset: "ts-jest",
testEnvironment: "jsdom",
moduleNameMapper: pathsToModuleNameMapper(compilerOptions?.paths || {}, {
prefix: "<rootDir>/../../../",
}),
};

View File

@ -0,0 +1,23 @@
{
"name": "@bitwarden/send-ui",
"version": "0.0.0",
"description": "Angular components for Bitwarden Send",
"keywords": [
"bitwarden"
],
"author": "Bitwarden Inc.",
"homepage": "https://bitwarden.com",
"repository": {
"type": "git",
"url": "https://github.com/bitwarden/clients"
},
"license": "GPL-3.0",
"scripts": {
"clean": "rimraf dist",
"build": "npm run clean && tsc",
"build:watch": "npm run clean && tsc -watch"
},
"dependencies": {
"@bitwarden/common": "file:../../../common"
}
}

View File

View File

@ -0,0 +1,5 @@
{
"extends": "../../../shared/tsconfig.libs",
"include": ["src"],
"exclude": ["node_modules", "dist"]
}

View File

@ -0,0 +1,3 @@
{
"extends": "./tsconfig.json"
}

View File

@ -25,6 +25,7 @@
"@bitwarden/vault-export-ui": [".libs/tools/export/vault-export/vault-export-ui/src"], "@bitwarden/vault-export-ui": [".libs/tools/export/vault-export/vault-export-ui/src"],
"@bitwarden/importer/core": ["./libs/importer/src"], "@bitwarden/importer/core": ["./libs/importer/src"],
"@bitwarden/importer/ui": ["./libs/importer/src/components"], "@bitwarden/importer/ui": ["./libs/importer/src/components"],
"@bitwarden/send-ui": [".libs/tools/send/send-ui/src"],
"@bitwarden/platform": ["./libs/platform/src"], "@bitwarden/platform": ["./libs/platform/src"],
"@bitwarden/node/*": ["./libs/node/src/*"], "@bitwarden/node/*": ["./libs/node/src/*"],
"@bitwarden/vault": ["./libs/vault/src"], "@bitwarden/vault": ["./libs/vault/src"],

View File

@ -27,6 +27,7 @@
"@bitwarden/importer/core": ["./libs/importer/src"], "@bitwarden/importer/core": ["./libs/importer/src"],
"@bitwarden/importer/ui": ["./libs/importer/src/components"], "@bitwarden/importer/ui": ["./libs/importer/src/components"],
"@bitwarden/platform": ["./libs/platform/src"], "@bitwarden/platform": ["./libs/platform/src"],
"@bitwarden/send-ui": ["./libs/tools/send/send-ui/src"],
"@bitwarden/node/*": ["./libs/node/src/*"], "@bitwarden/node/*": ["./libs/node/src/*"],
"@bitwarden/web-vault/*": ["./apps/web/src/*"], "@bitwarden/web-vault/*": ["./apps/web/src/*"],
"@bitwarden/vault": ["./libs/vault/src"], "@bitwarden/vault": ["./libs/vault/src"],