mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-21 11:35:34 +01:00
move state provider extensions to tools folder (#9436)
This commit is contained in:
parent
41fbac7151
commit
90e7e16df6
@ -4,12 +4,12 @@ import { CryptoService } from "../../../platform/abstractions/crypto.service";
|
||||
import { EncryptService } from "../../../platform/abstractions/encrypt.service";
|
||||
import { SingleUserState, StateProvider } from "../../../platform/state";
|
||||
import { UserId } from "../../../types/guid";
|
||||
import { BufferedState } from "../../state/buffered-state";
|
||||
import { PaddedDataPacker } from "../../state/padded-data-packer";
|
||||
import { SecretState } from "../../state/secret-state";
|
||||
import { UserKeyEncryptor } from "../../state/user-key-encryptor";
|
||||
import { GeneratorHistoryService } from "../abstractions/generator-history.abstraction";
|
||||
import { GENERATOR_HISTORY, GENERATOR_HISTORY_BUFFER } from "../key-definitions";
|
||||
import { BufferedState } from "../state/buffered-state";
|
||||
import { PaddedDataPacker } from "../state/padded-data-packer";
|
||||
import { SecretState } from "../state/secret-state";
|
||||
import { UserKeyEncryptor } from "../state/user-key-encryptor";
|
||||
|
||||
import { GeneratedCredential } from "./generated-credential";
|
||||
import { LegacyPasswordHistoryDecryptor } from "./legacy-password-history-decryptor";
|
||||
|
@ -1,6 +1,9 @@
|
||||
import { Jsonify } from "type-fest";
|
||||
|
||||
import { GENERATOR_DISK, UserKeyDefinition } from "../../platform/state";
|
||||
import { BufferedKeyDefinition } from "../state/buffered-key-definition";
|
||||
import { SecretClassifier } from "../state/secret-classifier";
|
||||
import { SecretKeyDefinition } from "../state/secret-key-definition";
|
||||
|
||||
import { GeneratedCredential } from "./history/generated-credential";
|
||||
import { LegacyPasswordHistoryDecryptor } from "./history/legacy-password-history-decryptor";
|
||||
@ -8,9 +11,6 @@ import { GeneratorNavigation } from "./navigation/generator-navigation";
|
||||
import { PassphraseGenerationOptions } from "./passphrase/passphrase-generation-options";
|
||||
import { GeneratedPasswordHistory } from "./password/generated-password-history";
|
||||
import { PasswordGenerationOptions } from "./password/password-generation-options";
|
||||
import { BufferedKeyDefinition } from "./state/buffered-key-definition";
|
||||
import { SecretClassifier } from "./state/secret-classifier";
|
||||
import { SecretKeyDefinition } from "./state/secret-key-definition";
|
||||
import { CatchallGenerationOptions } from "./username/catchall-generator-options";
|
||||
import { EffUsernameGenerationOptions } from "./username/eff-username-generator-options";
|
||||
import {
|
||||
|
@ -11,9 +11,9 @@ import { EncryptService } from "../../../platform/abstractions/encrypt.service";
|
||||
import { StateProvider } from "../../../platform/state";
|
||||
import { UserId } from "../../../types/guid";
|
||||
import { UserKey } from "../../../types/key";
|
||||
import { BufferedState } from "../../state/buffered-state";
|
||||
import { DefaultPolicyEvaluator } from "../default-policy-evaluator";
|
||||
import { DUCK_DUCK_GO_FORWARDER, DUCK_DUCK_GO_BUFFER } from "../key-definitions";
|
||||
import { BufferedState } from "../state/buffered-state";
|
||||
|
||||
import { ForwarderGeneratorStrategy } from "./forwarder-generator-strategy";
|
||||
import { DefaultDuckDuckGoOptions } from "./forwarders/duck-duck-go";
|
||||
|
@ -5,16 +5,16 @@ import { CryptoService } from "../../../platform/abstractions/crypto.service";
|
||||
import { EncryptService } from "../../../platform/abstractions/encrypt.service";
|
||||
import { SingleUserState, StateProvider, UserKeyDefinition } from "../../../platform/state";
|
||||
import { UserId } from "../../../types/guid";
|
||||
import { BufferedKeyDefinition } from "../../state/buffered-key-definition";
|
||||
import { BufferedState } from "../../state/buffered-state";
|
||||
import { PaddedDataPacker } from "../../state/padded-data-packer";
|
||||
import { SecretClassifier } from "../../state/secret-classifier";
|
||||
import { SecretKeyDefinition } from "../../state/secret-key-definition";
|
||||
import { SecretState } from "../../state/secret-state";
|
||||
import { UserKeyEncryptor } from "../../state/user-key-encryptor";
|
||||
import { GeneratorStrategy } from "../abstractions";
|
||||
import { DefaultPolicyEvaluator } from "../default-policy-evaluator";
|
||||
import { NoPolicy } from "../no-policy";
|
||||
import { BufferedKeyDefinition } from "../state/buffered-key-definition";
|
||||
import { BufferedState } from "../state/buffered-state";
|
||||
import { PaddedDataPacker } from "../state/padded-data-packer";
|
||||
import { SecretClassifier } from "../state/secret-classifier";
|
||||
import { SecretKeyDefinition } from "../state/secret-key-definition";
|
||||
import { SecretState } from "../state/secret-state";
|
||||
import { UserKeyEncryptor } from "../state/user-key-encryptor";
|
||||
|
||||
import { ApiOptions } from "./options/forwarder-options";
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { GENERATOR_DISK, UserKeyDefinition } from "../../../platform/state";
|
||||
import { GENERATOR_DISK, UserKeyDefinition } from "../../platform/state";
|
||||
|
||||
import { BufferedKeyDefinition } from "./buffered-key-definition";
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { UserKeyDefinition, UserKeyDefinitionOptions } from "../../../platform/state";
|
||||
import { UserKeyDefinition, UserKeyDefinitionOptions } from "../../platform/state";
|
||||
// eslint-disable-next-line -- `StateDefinition` used as an argument
|
||||
import { StateDefinition } from "../../../platform/state/state-definition";
|
||||
import { StateDefinition } from "../../platform/state/state-definition";
|
||||
|
||||
/** A set of options for customizing the behavior of a {@link BufferedKeyDefinition}
|
||||
*/
|
@ -5,9 +5,9 @@ import {
|
||||
FakeStateProvider,
|
||||
awaitAsync,
|
||||
trackEmissions,
|
||||
} from "../../../../spec";
|
||||
import { GENERATOR_DISK, KeyDefinition } from "../../../platform/state";
|
||||
import { UserId } from "../../../types/guid";
|
||||
} from "../../../spec";
|
||||
import { GENERATOR_DISK, KeyDefinition } from "../../platform/state";
|
||||
import { UserId } from "../../types/guid";
|
||||
|
||||
import { BufferedKeyDefinition } from "./buffered-key-definition";
|
||||
import { BufferedState } from "./buffered-state";
|
@ -5,7 +5,7 @@ import {
|
||||
SingleUserState,
|
||||
CombinedState,
|
||||
StateUpdateOptions,
|
||||
} from "../../../platform/state";
|
||||
} from "../../platform/state";
|
||||
|
||||
import { BufferedKeyDefinition } from "./buffered-key-definition";
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { Jsonify } from "type-fest";
|
||||
|
||||
import { Utils } from "../../../platform/misc/utils";
|
||||
import { Utils } from "../../platform/misc/utils";
|
||||
|
||||
import { DataPacker as DataPackerAbstraction } from "./data-packer.abstraction";
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { GENERATOR_DISK, UserKeyDefinitionOptions } from "../../../platform/state";
|
||||
import { GENERATOR_DISK, UserKeyDefinitionOptions } from "../../platform/state";
|
||||
|
||||
import { SecretClassifier } from "./secret-classifier";
|
||||
import { SecretKeyDefinition } from "./secret-key-definition";
|
@ -1,6 +1,6 @@
|
||||
import { UserKeyDefinitionOptions, UserKeyDefinition } from "../../../platform/state";
|
||||
import { UserKeyDefinitionOptions, UserKeyDefinition } from "../../platform/state";
|
||||
// eslint-disable-next-line -- `StateDefinition` used as an argument
|
||||
import { StateDefinition } from "../../../platform/state/state-definition";
|
||||
import { StateDefinition } from "../../platform/state/state-definition";
|
||||
import { ClassifiedFormat } from "./classified-format";
|
||||
import { SecretClassifier } from "./secret-classifier";
|
||||
|
@ -7,10 +7,10 @@ import {
|
||||
makeEncString,
|
||||
mockAccountServiceWith,
|
||||
awaitAsync,
|
||||
} from "../../../../spec";
|
||||
import { EncString } from "../../../platform/models/domain/enc-string";
|
||||
import { GENERATOR_DISK } from "../../../platform/state";
|
||||
import { UserId } from "../../../types/guid";
|
||||
} from "../../../spec";
|
||||
import { EncString } from "../../platform/models/domain/enc-string";
|
||||
import { GENERATOR_DISK } from "../../platform/state";
|
||||
import { UserId } from "../../types/guid";
|
||||
|
||||
import { SecretClassifier } from "./secret-classifier";
|
||||
import { SecretKeyDefinition } from "./secret-key-definition";
|
@ -1,13 +1,13 @@
|
||||
import { Observable, map, concatMap, share, ReplaySubject, timer } from "rxjs";
|
||||
|
||||
import { EncString } from "../../../platform/models/domain/enc-string";
|
||||
import { EncString } from "../../platform/models/domain/enc-string";
|
||||
import {
|
||||
SingleUserState,
|
||||
StateProvider,
|
||||
StateUpdateOptions,
|
||||
CombinedState,
|
||||
} from "../../../platform/state";
|
||||
import { UserId } from "../../../types/guid";
|
||||
} from "../../platform/state";
|
||||
import { UserId } from "../../types/guid";
|
||||
|
||||
import { ClassifiedFormat } from "./classified-format";
|
||||
import { SecretKeyDefinition } from "./secret-key-definition";
|
@ -1,7 +1,7 @@
|
||||
import { Jsonify } from "type-fest";
|
||||
|
||||
import { EncString } from "../../../platform/models/domain/enc-string";
|
||||
import { UserId } from "../../../types/guid";
|
||||
import { EncString } from "../../platform/models/domain/enc-string";
|
||||
import { UserId } from "../../types/guid";
|
||||
|
||||
/** A classification strategy that protects a type's secrets with
|
||||
* user-specific information. The specific kind of information is
|
@ -1,12 +1,12 @@
|
||||
import { mock } from "jest-mock-extended";
|
||||
|
||||
import { CryptoService } from "../../../platform/abstractions/crypto.service";
|
||||
import { EncryptService } from "../../../platform/abstractions/encrypt.service";
|
||||
import { EncString } from "../../../platform/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "../../../platform/models/domain/symmetric-crypto-key";
|
||||
import { CsprngArray } from "../../../types/csprng";
|
||||
import { UserId } from "../../../types/guid";
|
||||
import { UserKey } from "../../../types/key";
|
||||
import { CryptoService } from "../../platform/abstractions/crypto.service";
|
||||
import { EncryptService } from "../../platform/abstractions/encrypt.service";
|
||||
import { EncString } from "../../platform/models/domain/enc-string";
|
||||
import { SymmetricCryptoKey } from "../../platform/models/domain/symmetric-crypto-key";
|
||||
import { CsprngArray } from "../../types/csprng";
|
||||
import { UserId } from "../../types/guid";
|
||||
import { UserKey } from "../../types/key";
|
||||
|
||||
import { DataPacker } from "./data-packer.abstraction";
|
||||
import { UserKeyEncryptor } from "./user-key-encryptor";
|
@ -1,9 +1,9 @@
|
||||
import { Jsonify } from "type-fest";
|
||||
|
||||
import { CryptoService } from "../../../platform/abstractions/crypto.service";
|
||||
import { EncryptService } from "../../../platform/abstractions/encrypt.service";
|
||||
import { EncString } from "../../../platform/models/domain/enc-string";
|
||||
import { UserId } from "../../../types/guid";
|
||||
import { CryptoService } from "../../platform/abstractions/crypto.service";
|
||||
import { EncryptService } from "../../platform/abstractions/encrypt.service";
|
||||
import { EncString } from "../../platform/models/domain/enc-string";
|
||||
import { UserId } from "../../types/guid";
|
||||
|
||||
import { DataPacker } from "./data-packer.abstraction";
|
||||
import { UserEncryptor } from "./user-encryptor.abstraction";
|
Loading…
Reference in New Issue
Block a user