@tolgee/core 4.5.0 → 4.6.0-rc.03177a3.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 +139 -109
- 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 +139 -109
- 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 +0 -0
- package/lib/Tolgee.d.ts +0 -0
- package/lib/TolgeeConfig.d.ts +0 -0
- 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 +1 -0
- package/lib/highlighter/MouseEventHandler.d.ts +17 -13
- package/lib/highlighter/TranslationHighlighter.d.ts +1 -1
- 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 +0 -0
- 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 +0 -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 +0 -0
- package/lib/types.d.ts +1 -3
- 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
|
File without changes
|
package/lib/Tolgee.d.ts
CHANGED
|
File without changes
|
package/lib/TolgeeConfig.d.ts
CHANGED
|
File without changes
|
|
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
|
|
@@ -4,6 +4,7 @@ export declare class HighlightFunctionsInitializer {
|
|
|
4
4
|
private properties;
|
|
5
5
|
constructor(properties: Properties);
|
|
6
6
|
initFunctions(element: ElementWithMeta): void;
|
|
7
|
+
borderElement: HTMLDivElement | null;
|
|
7
8
|
private initHighlightFunction;
|
|
8
9
|
private initUnhighlightFunction;
|
|
9
10
|
}
|
|
@@ -1,23 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Properties } from '../Properties';
|
|
1
|
+
import { DependencyService } from '../services/DependencyService';
|
|
3
2
|
export declare class MouseEventHandler {
|
|
4
|
-
private
|
|
3
|
+
private dependencies;
|
|
5
4
|
private keysDown;
|
|
6
|
-
private mouseOn;
|
|
7
5
|
private highlighted;
|
|
8
6
|
private mouseOnChanged;
|
|
9
7
|
private keysChanged;
|
|
10
|
-
|
|
8
|
+
private cursorPosition;
|
|
9
|
+
constructor(dependencies: DependencyService);
|
|
11
10
|
run(): void;
|
|
12
|
-
|
|
13
|
-
private initEventListeners;
|
|
14
|
-
private readonly onConditionsChanged;
|
|
11
|
+
stop(): void;
|
|
15
12
|
private readonly highlight;
|
|
16
13
|
private readonly unhighlight;
|
|
17
|
-
private
|
|
18
|
-
private
|
|
19
|
-
private
|
|
20
|
-
private
|
|
21
|
-
private
|
|
14
|
+
private updateHighlight;
|
|
15
|
+
private updateCursorPosition;
|
|
16
|
+
private blockEvents;
|
|
17
|
+
private onMouseMove;
|
|
18
|
+
private onBlur;
|
|
19
|
+
private onKeyDown;
|
|
20
|
+
private onKeyUp;
|
|
21
|
+
private onScroll;
|
|
22
|
+
private onClick;
|
|
23
|
+
private initEventListeners;
|
|
24
|
+
private removeEventListeners;
|
|
25
|
+
private getClosestTolgeeElement;
|
|
22
26
|
private areKeysDown;
|
|
23
27
|
}
|
|
@@ -10,5 +10,5 @@ export declare class TranslationHighlighter {
|
|
|
10
10
|
listen(element: ElementWithMeta & ElementCSSInlineStyle): void;
|
|
11
11
|
private getRenderer;
|
|
12
12
|
private getKeyAndDefault;
|
|
13
|
-
|
|
13
|
+
translationEdit: (e: MouseEvent, element: ElementWithMeta) => Promise<void>;
|
|
14
14
|
}
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
package/lib/types/DTOs.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
package/lib/types.d.ts
CHANGED
|
@@ -79,11 +79,9 @@ export declare type ElementMeta = {
|
|
|
79
79
|
wrappedWithElementOnlyKey?: string;
|
|
80
80
|
wrappedWithElementOnlyDefaultHtml?: string;
|
|
81
81
|
nodes: Set<NodeWithMeta>;
|
|
82
|
-
|
|
83
|
-
removeAllEventListeners?: () => void;
|
|
82
|
+
highlightEl?: HTMLDivElement;
|
|
84
83
|
highlight?: () => void;
|
|
85
84
|
unhighlight?: () => void;
|
|
86
|
-
initialBackgroundColor?: string;
|
|
87
85
|
/**
|
|
88
86
|
* Stops removing of element's inactive nodes and
|
|
89
87
|
* unregistering from ElementRegistrar.
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tolgee/core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.6.0-rc.03177a3.0",
|
|
4
4
|
"description": "Library providing ability to translate messages directly in context of developed application.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "./dist/tolgee.esm.js",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"develop": "concurrently \"rollup -c rollup.config.js -w\" \"tsc --watch --preserveWatchOutput --project tsconfig.prod.json\" ",
|
|
31
31
|
"schema": "openapi-typescript http://localhost:8080/v3/api-docs/All%20Internal%20-%20for%20Tolgee%20Web%20application --output ./src/types/apiSchema.generated.ts",
|
|
32
32
|
"typedoc": "typedoc --entryPointStrategy expand --out docs src/index.ts src/Tolgee.ts src/types.ts src/services/EventEmitter.ts src/services/Subscription.ts",
|
|
33
|
-
"tsc": "tsc --noEmit"
|
|
33
|
+
"tsc": "tsc --noEmit --emitDeclarationOnly false"
|
|
34
34
|
},
|
|
35
35
|
"author": "JanCizmar",
|
|
36
36
|
"license": "MIT",
|
|
@@ -57,15 +57,15 @@
|
|
|
57
57
|
"rollup-plugin-terser": "7.0.2",
|
|
58
58
|
"ts-jest": "^27.0.5",
|
|
59
59
|
"tslib": "^2.3.1",
|
|
60
|
-
"typedoc": "0.22.
|
|
61
|
-
"typedoc-plugin-markdown": "3.
|
|
60
|
+
"typedoc": "0.22.15",
|
|
61
|
+
"typedoc-plugin-markdown": "3.12.1",
|
|
62
62
|
"typescript": "4.6.3"
|
|
63
63
|
},
|
|
64
64
|
"exports": {
|
|
65
65
|
"require": "./dist/tolgee.cjs.js",
|
|
66
66
|
"import": "./dist/tolgee.esm.js"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "4c671473f9dd53931a28fc9fb2c5a2b586696e69",
|
|
69
69
|
"publishConfig": {
|
|
70
70
|
"access": "public"
|
|
71
71
|
}
|