@pisell/core 1.0.62 → 1.0.63

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.
@@ -21,6 +21,6 @@ export declare class History {
21
21
  externalPage: (path: string) => void;
22
22
  goLogin: () => any;
23
23
  getQuery: () => {
24
- [k: string]: string;
24
+ [k: string]: any;
25
25
  };
26
26
  }
@@ -38,7 +38,8 @@ export var Locales = /*#__PURE__*/function () {
38
38
  return _this.locale;
39
39
  });
40
40
  _defineProperty(this, "getCurrentTexts", function (locale) {
41
- return _this.library[locale || _this.locale].translations;
41
+ var _this$library, _this$library$en;
42
+ return ((_this$library = _this.library[locale || _this.locale]) === null || _this$library === void 0 ? void 0 : _this$library.translations) || ((_this$library$en = _this.library.en) === null || _this$library$en === void 0 ? void 0 : _this$library$en.translations) || {};
42
43
  });
43
44
  _defineProperty(this, "setLocale", function (locale) {
44
45
  var reload = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
@@ -20,9 +20,9 @@ export declare class RouterManager {
20
20
  get(name: string): RouteType;
21
21
  has(name: string): boolean;
22
22
  remove(name: string): void;
23
- renderComponent(item: RouteType, children?: React.ReactNode): string | number | boolean | JSX.Element | React.ReactFragment | null | undefined;
23
+ renderComponent(item: RouteType, children?: React.ReactNode): string | number | boolean | React.JSX.Element | Iterable<React.ReactNode> | null | undefined;
24
24
  getPageByRoute(route: string): ApplicationInterface | undefined;
25
25
  getRouterComponent({ fallback }: {
26
26
  fallback?: React.ReactNode;
27
- }): JSX.Element[];
27
+ }): React.JSX.Element[];
28
28
  }
@@ -21,6 +21,6 @@ export declare class History {
21
21
  externalPage: (path: string) => void;
22
22
  goLogin: () => any;
23
23
  getQuery: () => {
24
- [k: string]: string;
24
+ [k: string]: any;
25
25
  };
26
26
  }
@@ -61,7 +61,8 @@ var Locales = class {
61
61
  return this.locale;
62
62
  };
63
63
  getCurrentTexts = (locale) => {
64
- return this.library[locale || this.locale].translations;
64
+ var _a, _b;
65
+ return ((_a = this.library[locale || this.locale]) == null ? void 0 : _a.translations) || ((_b = this.library.en) == null ? void 0 : _b.translations) || {};
65
66
  };
66
67
  setLocale = (locale, reload = false) => {
67
68
  this.locale = locale;
@@ -20,9 +20,9 @@ export declare class RouterManager {
20
20
  get(name: string): RouteType;
21
21
  has(name: string): boolean;
22
22
  remove(name: string): void;
23
- renderComponent(item: RouteType, children?: React.ReactNode): string | number | boolean | JSX.Element | React.ReactFragment | null | undefined;
23
+ renderComponent(item: RouteType, children?: React.ReactNode): string | number | boolean | React.JSX.Element | Iterable<React.ReactNode> | null | undefined;
24
24
  getPageByRoute(route: string): ApplicationInterface | undefined;
25
25
  getRouterComponent({ fallback }: {
26
26
  fallback?: React.ReactNode;
27
- }): JSX.Element[];
27
+ }): React.JSX.Element[];
28
28
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/core",
3
- "version": "1.0.62",
3
+ "version": "1.0.63",
4
4
  "sideEffects": false,
5
5
  "main": "./lib/index.js",
6
6
  "module": "./es/index.js",