@refinitiv-ui/translate 5.2.0-next.4 → 5.2.2

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/CHANGELOG.md CHANGED
@@ -3,18 +3,15 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- # [5.2.0-next.4](https://git.sami.int.thomsonreuters.com/elf/refinitiv-ui/compare/@refinitiv-ui/translate@5.2.0-next.3...@refinitiv-ui/translate@5.2.0-next.4) (2021-09-21)
6
+ ## [5.2.2](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/translate@5.2.1...@refinitiv-ui/translate@5.2.2) (2021-12-03)
7
7
 
8
-
9
- ### Bug Fixes
10
-
11
- * **core:** fix nested theme styles ([3c28bbd](https://git.sami.int.thomsonreuters.com/elf/refinitiv-ui/commits/3c28bbd67061271dd7fb66eabe5e5158389a23d1))
8
+ **Note:** Version bump only for package @refinitiv-ui/translate
12
9
 
13
10
 
14
11
 
15
12
 
16
13
 
17
- # [5.2.0-next.3](https://git.sami.int.thomsonreuters.com/elf/refinitiv-ui/compare/@refinitiv-ui/translate@5.2.0-next.2...@refinitiv-ui/translate@5.2.0-next.3) (2021-09-20)
14
+ ## [5.2.1](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/translate@5.2.0...@refinitiv-ui/translate@5.2.1) (2021-11-22)
18
15
 
19
16
  **Note:** Version bump only for package @refinitiv-ui/translate
20
17
 
@@ -22,36 +19,31 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
22
19
 
23
20
 
24
21
 
25
- # [5.2.0-next.2](https://git.sami.int.thomsonreuters.com/elf/refinitiv-ui/compare/@refinitiv-ui/translate@5.2.0-next.1...@refinitiv-ui/translate@5.2.0-next.2) (2021-09-20)
26
-
27
- **Note:** Version bump only for package @refinitiv-ui/translate
28
-
29
-
22
+ # [5.2.0](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/translate@5.1.8...@refinitiv-ui/translate@5.2.0) (2021-11-08)
30
23
 
31
24
 
25
+ ### Features
32
26
 
33
- # [5.2.0-next.1](https://git.sami.int.thomsonreuters.com/elf/refinitiv-ui/compare/@refinitiv-ui/translate@5.2.0-next.0...@refinitiv-ui/translate@5.2.0-next.1) (2021-09-20)
27
+ * Lit@2 upgrade ([dbda63b](https://github.com/Refinitiv/refinitiv-ui/commit/dbda63be97257f891cb1f2c5ff46b638c70e0b15))
34
28
 
35
- **Note:** Version bump only for package @refinitiv-ui/translate
36
29
 
37
30
 
38
31
 
39
32
 
33
+ ## [5.1.8](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/translate@5.1.5...@refinitiv-ui/translate@5.1.8) (2021-10-25)
40
34
 
41
- # [5.2.0-next.0](https://git.sami.int.thomsonreuters.com/elf/refinitiv-ui/compare/@refinitiv-ui/translate@5.1.5-next.0...@refinitiv-ui/translate@5.2.0-next.0) (2021-09-16)
35
+ **Note:** Version bump only for package @refinitiv-ui/translate
42
36
 
43
37
 
44
- ### Features
45
38
 
46
- * **utils:** use own simplified version of uuid for bundlers that do not support browser export ([a171873](https://git.sami.int.thomsonreuters.com/elf/refinitiv-ui/commits/a1718734fca10d8d42638739dd735fb0725b66d8))
47
39
 
48
40
 
41
+ ## [5.1.5](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/translate@5.1.4...@refinitiv-ui/translate@5.1.5) (2021-10-11)
49
42
 
50
43
 
44
+ ### Bug Fixes
51
45
 
52
- ## [5.1.5-next.0](https://git.sami.int.thomsonreuters.com/elf/refinitiv-ui/compare/@refinitiv-ui/translate@5.1.4...@refinitiv-ui/translate@5.1.5-next.0) (2021-09-16)
53
-
54
- **Note:** Version bump only for package @refinitiv-ui/translate
46
+ * remove source maps reference from the production build ([655d0bb](https://github.com/Refinitiv/refinitiv-ui/commit/655d0bb57290e5fe1276bf1a99bd7a0190d7a2f8))
55
47
 
56
48
 
57
49
 
@@ -1,6 +1,6 @@
1
+ import type { BasicElement } from '@refinitiv-ui/core';
1
2
  import { PartInfo, DirectiveResult } from 'lit/directive.js';
2
3
  import { AsyncDirective } from 'lit/async-directive.js';
3
- import type { BasicElement } from '@refinitiv-ui/core';
4
4
  import { TranslateOptions, TranslateParams } from '@refinitiv-ui/i18n';
5
5
  declare const TranslatePropertyKey: unique symbol;
6
6
  declare type DecoratorOptions = {
@@ -41,4 +41,3 @@ declare const getLocale: (element: HTMLElement) => string;
41
41
  */
42
42
  declare const translate: (options?: string | DecoratorOptions | undefined) => TranslateFunction;
43
43
  export { translate, TranslatePropertyKey, getLocale, Translate, TranslatePromise, TranslateDirective };
44
- //# sourceMappingURL=translate.d.ts.map
package/lib/translate.js CHANGED
@@ -71,12 +71,12 @@ const observeTranslations = function (scope = this.localName) {
71
71
  // this ensures that requestUpdate always comes through
72
72
  // however, external applications still can detect that the change is coming for translations
73
73
  // this is better than empty requestUpdate() as in that case in is not possible to detect source of update
74
- void this.requestUpdate(TranslatePropertyKey, {});
74
+ this.requestUpdate(TranslatePropertyKey, {});
75
75
  }
76
76
  });
77
77
  // Observe new translations for the scope
78
78
  return Phrasebook.observe(scope, () => {
79
- void this.requestUpdate(TranslatePropertyKey, {});
79
+ this.requestUpdate(TranslatePropertyKey, {});
80
80
  });
81
81
  };
82
82
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@refinitiv-ui/translate",
3
- "version": "5.2.0-next.4",
3
+ "version": "5.2.2",
4
4
  "description": "i18n implementation for Element Framework components",
5
5
  "author": "Refinitiv",
6
6
  "license": "Apache-2.0",
@@ -9,12 +9,13 @@
9
9
  "types": "./lib/translate.d.ts",
10
10
  "repository": {
11
11
  "type": "git",
12
- "url": "git@git.sami.int.thomsonreuters.com:elf/refinitiv-ui.git",
12
+ "url": "git@github.com:Refinitiv/refinitiv-ui.git",
13
13
  "directory": "packages/translate"
14
14
  },
15
15
  "scripts": {
16
- "build": "tsc --sourceMap false",
17
- "build:watch": "tsc --watch --preserveWatchOutput --sourceMap",
16
+ "build": "tsc --sourceMap --declarationMap",
17
+ "build:prod": "tsc",
18
+ "build:watch": "npm run build -- --watch --preserveWatchOutput",
18
19
  "lint": "eslint .",
19
20
  "lint:fix": "eslint . --fix",
20
21
  "start": "npm run build && concurrently \"npm run build:watch\" \"web-dev-server --config ../../server.config.js --app-index __demo__\"",
@@ -23,16 +24,17 @@
23
24
  "test:watch": "npm run test -- --watch"
24
25
  },
25
26
  "dependencies": {
26
- "@refinitiv-ui/i18n": "^5.1.5-next.2",
27
- "@refinitiv-ui/phrasebook": "^5.1.3-next.1",
28
- "lit": "^2.0.0"
27
+ "@refinitiv-ui/i18n": "^5.2.2",
28
+ "@refinitiv-ui/phrasebook": "^5.2.1",
29
+ "lit": "^2.0.0",
30
+ "tslib": "^2.3.1"
29
31
  },
30
32
  "devDependencies": {
31
- "@refinitiv-ui/core": "^5.1.0-next.3",
32
- "@refinitiv-ui/test-helpers": "^5.0.2-next.2"
33
+ "@refinitiv-ui/core": "^5.3.2",
34
+ "@refinitiv-ui/test-helpers": "^5.1.1"
33
35
  },
34
36
  "publishConfig": {
35
37
  "access": "public"
36
38
  },
37
- "gitHead": "17c909e6d2d79f1fc3c3c455e8009aee5c6a3b00"
39
+ "gitHead": "dd5c4933b7a76fbeeed086e1fe84b144202b6884"
38
40
  }