@fluid-topics/ft-i18n 1.3.26 → 1.3.28

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.
@@ -27,7 +27,7 @@ export type FtLitElementWithI18nInterface = {
27
27
  onI18nUpdate(context: string): void;
28
28
  };
29
29
  type FtLitElementWithI18nType<T extends Constructor<FtLitElement>> = T & Constructor<FtLitElementWithI18nInterface>;
30
- export declare function withI18n<T extends Constructor<FtLitElement>>(Class: T): FtLitElementWithI18nType<T>;
30
+ export declare const withI18n: <T extends Constructor<FtLitElement>>(c: T) => FtLitElementWithI18nType<T>;
31
31
  declare const FtLitElementWithI18n_base: FtLitElementWithI18nType<typeof FtLitElement>;
32
32
  export declare class FtLitElementWithI18n extends FtLitElementWithI18n_base {
33
33
  }
package/build/lit/i18n.js CHANGED
@@ -4,7 +4,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
4
4
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
- import { FtLitElement, FtLitElementRedux } from "@fluid-topics/ft-wc-utils";
7
+ import { applyMixinOnce, FtLitElement, FtLitElementRedux } from "@fluid-topics/ft-wc-utils";
8
8
  import { ftCustomI18nService, ftI18nService } from "@fluid-topics/ft-app-context";
9
9
  import { property } from "lit/decorators.js";
10
10
  import { i18nAttributeConverter } from "../decorators/I18nAttributeConverter";
@@ -13,7 +13,7 @@ export const i18nListAttributes = Symbol("i18nListAttributes");
13
13
  export const i18nProperties = Symbol("i18nProperties");
14
14
  export const i18nContexts = Symbol("i18nContexts");
15
15
  export const i18nUnsubs = Symbol("i18nUnsubs");
16
- export function withI18n(Class) {
16
+ export const withI18n = applyMixinOnce(Symbol("withI18n"), function (Class) {
17
17
  var _a, _b;
18
18
  class FtLitElementWithI18nClass extends Class {
19
19
  constructor() {
@@ -113,7 +113,7 @@ export function withI18n(Class) {
113
113
  property({ type: Boolean })
114
114
  ], FtLitElementWithI18nClass.prototype, "useCustomMessageContexts", void 0);
115
115
  return FtLitElementWithI18nClass;
116
- }
116
+ });
117
117
  export class FtLitElementWithI18n extends withI18n(FtLitElement) {
118
118
  }
119
119
  export class FtLitElementReduxWithI18n extends withI18n(FtLitElementRedux) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-i18n",
3
- "version": "1.3.26",
3
+ "version": "1.3.28",
4
4
  "description": "Integrated component that displays internationalized label from a Fluid Topics portal.",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,9 +19,9 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-app-context": "1.3.26",
23
- "@fluid-topics/ft-wc-utils": "1.3.26",
22
+ "@fluid-topics/ft-app-context": "1.3.28",
23
+ "@fluid-topics/ft-wc-utils": "1.3.28",
24
24
  "lit": "3.1.0"
25
25
  },
26
- "gitHead": "2801b1f3a132753af33d5d62b8001164737e2a4f"
26
+ "gitHead": "face2509aeead24e78a16af4ffd2123ef281dac2"
27
27
  }