@refinitiv-ui/translate 5.2.0-next.3 → 5.2.1

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,7 +3,7 @@
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.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)
6
+ ## [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)
7
7
 
8
8
  **Note:** Version bump only for package @refinitiv-ui/translate
9
9
 
@@ -11,36 +11,31 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
11
11
 
12
12
 
13
13
 
14
- # [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)
15
-
16
- **Note:** Version bump only for package @refinitiv-ui/translate
17
-
18
-
14
+ # [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)
19
15
 
20
16
 
17
+ ### Features
21
18
 
22
- # [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)
19
+ * Lit@2 upgrade ([dbda63b](https://github.com/Refinitiv/refinitiv-ui/commit/dbda63be97257f891cb1f2c5ff46b638c70e0b15))
23
20
 
24
- **Note:** Version bump only for package @refinitiv-ui/translate
25
21
 
26
22
 
27
23
 
28
24
 
25
+ ## [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)
29
26
 
30
- # [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)
31
-
27
+ **Note:** Version bump only for package @refinitiv-ui/translate
32
28
 
33
- ### Features
34
29
 
35
- * **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))
36
30
 
37
31
 
38
32
 
33
+ ## [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)
39
34
 
40
35
 
41
- ## [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)
36
+ ### Bug Fixes
42
37
 
43
- **Note:** Version bump only for package @refinitiv-ui/translate
38
+ * remove source maps reference from the production build ([655d0bb](https://github.com/Refinitiv/refinitiv-ui/commit/655d0bb57290e5fe1276bf1a99bd7a0190d7a2f8))
44
39
 
45
40
 
46
41
 
@@ -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.3",
3
+ "version": "5.2.1",
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-rc.4"
27
+ "@refinitiv-ui/i18n": "^5.2.1",
28
+ "@refinitiv-ui/phrasebook": "^5.2.0",
29
+ "lit": "^2.0.0",
30
+ "tslib": "^2.3.1"
29
31
  },
30
32
  "devDependencies": {
31
- "@refinitiv-ui/core": "^5.1.0-next.2",
32
- "@refinitiv-ui/test-helpers": "^5.0.2-next.2"
33
+ "@refinitiv-ui/core": "^5.3.1",
34
+ "@refinitiv-ui/test-helpers": "^5.1.1"
33
35
  },
34
36
  "publishConfig": {
35
37
  "access": "public"
36
38
  },
37
- "gitHead": "705982714bcc587fb03bc7418f8353cd34c366bf"
39
+ "gitHead": "442f86272d0c6dcb266d099c42b477e194355d1d"
38
40
  }