@tolgee/core 4.3.0-rc.6d9042d.0 → 4.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tolgee.cjs.js +16 -13
- package/dist/tolgee.cjs.js.map +1 -1
- package/dist/tolgee.cjs.min.js +1 -1
- package/dist/tolgee.cjs.min.js.map +1 -1
- package/dist/tolgee.esm.js +1 -1
- package/dist/tolgee.esm.js.map +1 -1
- package/dist/tolgee.umd.js +16 -13
- package/dist/tolgee.umd.js.map +1 -1
- package/dist/tolgee.umd.min.js +1 -1
- package/dist/tolgee.umd.min.js.map +1 -1
- package/lib/Constants/Global.d.ts +0 -0
- package/lib/Constants/ModifierKey.d.ts +0 -0
- package/lib/Errors/ApiHttpError.d.ts +0 -0
- package/lib/Observer.d.ts +0 -0
- package/lib/Properties.d.ts +3 -1
- package/lib/Tolgee.d.ts +0 -0
- package/lib/TolgeeConfig.d.ts +7 -1
- package/lib/helpers/NodeHelper.d.ts +0 -0
- package/lib/helpers/TextHelper.d.ts +0 -0
- package/lib/helpers/commonTypes.d.ts +0 -0
- package/lib/helpers/encoderPolyfill.d.ts +0 -0
- package/lib/helpers/secret.d.ts +0 -0
- package/lib/helpers/sleep.d.ts +0 -0
- package/lib/highlighter/HighlightFunctionsInitializer.d.ts +0 -0
- package/lib/highlighter/MouseEventHandler.d.ts +0 -0
- package/lib/highlighter/TranslationHighlighter.d.ts +0 -0
- package/lib/index.d.ts +0 -0
- package/lib/modules/IcuFormatter.d.ts +0 -0
- package/lib/modules/index.d.ts +0 -0
- package/lib/services/ApiHttpService.d.ts +0 -0
- package/lib/services/CoreService.d.ts +2 -2
- package/lib/services/DependencyService.d.ts +0 -0
- package/lib/services/ElementRegistrar.d.ts +0 -0
- package/lib/services/EventEmitter.d.ts +0 -0
- package/lib/services/EventService.d.ts +0 -0
- package/lib/services/ModuleService.d.ts +0 -0
- package/lib/services/ScreenshotService.d.ts +0 -0
- package/lib/services/Subscription.d.ts +0 -0
- package/lib/services/TextService.d.ts +0 -0
- package/lib/services/TranslationService.d.ts +1 -0
- package/lib/toolsManager/Messages.d.ts +0 -0
- package/lib/toolsManager/PluginManager.d.ts +0 -0
- package/lib/types/DTOs.d.ts +0 -0
- package/lib/types/apiSchema.generated.d.ts +2129 -969
- package/lib/types.d.ts +0 -0
- package/lib/wrappers/AbstractWrapper.d.ts +0 -0
- package/lib/wrappers/NodeHandler.d.ts +0 -0
- package/lib/wrappers/WrappedHandler.d.ts +0 -0
- package/lib/wrappers/invisible/AttributeHandler.d.ts +0 -0
- package/lib/wrappers/invisible/Coder.d.ts +0 -0
- package/lib/wrappers/invisible/ContentHandler.d.ts +0 -0
- package/lib/wrappers/invisible/CoreHandler.d.ts +0 -0
- package/lib/wrappers/invisible/InvisibleWrapper.d.ts +0 -0
- package/lib/wrappers/invisible/ValueMemory.d.ts +0 -0
- package/lib/wrappers/text/AttributeHandler.d.ts +0 -0
- package/lib/wrappers/text/Coder.d.ts +0 -0
- package/lib/wrappers/text/ContentHandler.d.ts +0 -0
- package/lib/wrappers/text/CoreHandler.d.ts +0 -0
- package/lib/wrappers/text/TextWrapper.d.ts +0 -0
- package/package.json +5 -5
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/Observer.d.ts
CHANGED
|
File without changes
|
package/lib/Properties.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { TolgeeConfig } from './TolgeeConfig';
|
|
2
|
-
import { Scope } from './types';
|
|
2
|
+
import { Mode, Scope } from './types';
|
|
3
3
|
export declare class Properties {
|
|
4
4
|
config: TolgeeConfig;
|
|
5
5
|
scopes?: Scope[];
|
|
6
6
|
projectId?: number;
|
|
7
|
+
permittedLanguageIds?: number[];
|
|
8
|
+
mode?: Mode;
|
|
7
9
|
_currentLanguage?: string;
|
|
8
10
|
get currentLanguage(): string;
|
|
9
11
|
set currentLanguage(language: string);
|
package/lib/Tolgee.d.ts
CHANGED
|
File without changes
|
package/lib/TolgeeConfig.d.ts
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { TreeTranslationsData } from './types';
|
|
2
3
|
import { ModifierKey } from './Constants/ModifierKey';
|
|
4
|
+
import { Mode } from 'fs';
|
|
3
5
|
declare type UiConstructor = new (...args: any[]) => any;
|
|
4
6
|
interface UiLibInterface {
|
|
5
7
|
UI: UiConstructor;
|
|
6
8
|
}
|
|
7
9
|
declare type UiType = UiConstructor | UiLibInterface | Promise<UiConstructor> | Promise<UiLibInterface>;
|
|
8
10
|
export declare class TolgeeConfig {
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated This option won't have any effect,
|
|
13
|
+
* because mode is now automatically detected when apiKey + apiUrl are set
|
|
14
|
+
*/
|
|
9
15
|
mode?: Mode;
|
|
10
16
|
apiUrl?: string;
|
|
11
17
|
apiKey?: string;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/helpers/secret.d.ts
CHANGED
|
File without changes
|
package/lib/helpers/sleep.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/index.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
package/lib/modules/index.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
@@ -3,7 +3,7 @@ import { ApiHttpService } from './ApiHttpService';
|
|
|
3
3
|
import { Scope } from '../types';
|
|
4
4
|
import { LanguageModel } from '../types/DTOs';
|
|
5
5
|
import { components } from '../types/apiSchema.generated';
|
|
6
|
-
export declare type
|
|
6
|
+
export declare type ApiKeyWithLanguagesModel = components['schemas']['ApiKeyWithLanguagesModel'];
|
|
7
7
|
export declare class CoreService {
|
|
8
8
|
private properties;
|
|
9
9
|
private apiHttpService;
|
|
@@ -11,7 +11,7 @@ export declare class CoreService {
|
|
|
11
11
|
constructor(properties: Properties, apiHttpService: ApiHttpService);
|
|
12
12
|
getLanguages(): Promise<Set<string>>;
|
|
13
13
|
getLanguagesFull(): Promise<LanguageModel[]>;
|
|
14
|
-
getApiKeyDetails(): Promise<
|
|
14
|
+
getApiKeyDetails(): Promise<ApiKeyWithLanguagesModel>;
|
|
15
15
|
isAuthorizedTo(scope: Scope): boolean;
|
|
16
16
|
checkScope(scope: Scope): void;
|
|
17
17
|
loadApiKeyDetails(): Promise<void>;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/types/DTOs.d.ts
CHANGED
|
File without changes
|