sample-piral 1.4.0-beta.6276 → 1.4.0-beta.6280

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/app/index.d.ts CHANGED
@@ -180,7 +180,7 @@ export interface PiletLocaleApi {
180
180
  * @param messagesList The list of messages that extend the existing translations
181
181
  * @param isOverriding Indicates whether the new translations overwrite the existing translations
182
182
  */
183
- addTranslations(messagesList: Array<(LocalizationMessages | NestedLocalizationMessages)>, isOverriding?: boolean): void;
183
+ addTranslations(messagesList: Array<AnyLocalizationMessages>, isOverriding?: boolean): void;
184
184
  /**
185
185
  * Gets the currently selected language directly.
186
186
  */
@@ -202,7 +202,7 @@ export interface PiletLocaleApi {
202
202
  * The translations will be exclusively used for retrieving translations for the pilet.
203
203
  * @param messages The messages to use as translation basis.
204
204
  */
205
- setTranslations(messages: LocalizationMessages | NestedLocalizationMessages): void;
205
+ setTranslations(messages: AnyLocalizationMessages): void;
206
206
  /**
207
207
  * Gets the currently provided translations by the pilet.
208
208
  */
@@ -450,14 +450,12 @@ export interface PiralStoreDataEvent<TValue = any> {
450
450
  expires: number;
451
451
  }
452
452
 
453
+ export type AnyLocalizationMessages = LocalizationMessages | NestedLocalizationMessages;
454
+
453
455
  export interface LocalizationMessages {
454
456
  [lang: string]: Translations;
455
457
  }
456
458
 
457
- export interface NestedLocalizationMessages {
458
- [lang: string]: NestedTranslations;
459
- }
460
-
461
459
  export type TileComponentProps = BaseComponentProps & BareTileComponentProps;
462
460
 
463
461
  export interface TilePreferences extends PiralCustomTilePreferences {
@@ -709,12 +707,12 @@ export interface PiralChangeUserEvent {
709
707
  current: UserInfo;
710
708
  }
711
709
 
712
- export interface Translations {
713
- [tag: string]: string;
710
+ export interface NestedLocalizationMessages {
711
+ [lang: string]: NestedTranslations;
714
712
  }
715
713
 
716
- export interface NestedTranslations {
717
- [tag: string]: string | NestedTranslations;
714
+ export interface Translations {
715
+ [tag: string]: string;
718
716
  }
719
717
 
720
718
  /**
@@ -911,6 +909,10 @@ export interface ExtensionRegistration extends BaseRegistration {
911
909
  defaults: any;
912
910
  }
913
911
 
912
+ export interface NestedTranslations {
913
+ [tag: string]: string | NestedTranslations;
914
+ }
915
+
914
916
  export type UnionOf<T> = {
915
917
  [K in keyof T]: T[K];
916
918
  }[keyof T];
package/app/index.html CHANGED
@@ -5,7 +5,7 @@
5
5
  <title>Piral Sample</title>
6
6
  <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
7
7
 
8
- <script defer src="/index.5d6015.js"></script></head>
8
+ <script defer src="/index.4e6122.js"></script></head>
9
9
  <body>
10
10
  <div id="app">
11
11
  <div class="pi-center">
package/app/index.js CHANGED
@@ -2,7 +2,7 @@ if (process.env.NODE_ENV === 'test') {
2
2
  // behavior for the test environment, we'll try to make it work
3
3
 
4
4
  if (typeof window !== 'undefined') {
5
- require('./index.5d6015.js');
5
+ require('./index.4e6122.js');
6
6
  const ctx = window['dbg:piral'];
7
7
  const dependencies = (ctx && ctx.pilets && ctx.pilets.getDependencies({})) || {};
8
8
  module.exports = dependencies['sample-piral'] || {};
package/files.tar CHANGED
Binary file
package/files_once.tar CHANGED
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sample-piral",
3
3
  "description": "Example project illustrating the use of the piral and piral-cli packages.",
4
- "version": "1.4.0-beta.6276",
4
+ "version": "1.4.0-beta.6280",
5
5
  "license": "MIT",
6
6
  "homepage": "https://piral.io",
7
7
  "keywords": [
@@ -31,7 +31,7 @@
31
31
  "files": []
32
32
  },
33
33
  "piralCLI": {
34
- "version": "1.4.0-beta.6276",
34
+ "version": "1.4.0-beta.6280",
35
35
  "generated": true
36
36
  },
37
37
  "main": "./app/index.js",
@@ -44,14 +44,14 @@
44
44
  "@types/react-dom": "^18.0.0",
45
45
  "@types/react-router": "^5.1.8",
46
46
  "@types/react-router-dom": "^5.1.6",
47
- "piral-cli": "^1.4.0-beta.6276",
48
- "piral-cli-webpack5": "^1.4.0-beta.6276",
47
+ "piral-cli": "^1.4.0-beta.6280",
48
+ "piral-cli-webpack5": "^1.4.0-beta.6280",
49
49
  "sass": "^1.17.0",
50
50
  "bootstrap": "^4.3.1",
51
- "piral": "^1.4.0-beta.6276",
52
- "piral-auth": "^1.4.0-beta.6276",
53
- "piral-hooks-utils": "^1.4.0-beta.6276",
54
- "piral-search": "^1.4.0-beta.6276",
51
+ "piral": "^1.4.0-beta.6280",
52
+ "piral-auth": "^1.4.0-beta.6280",
53
+ "piral-hooks-utils": "^1.4.0-beta.6280",
54
+ "piral-search": "^1.4.0-beta.6280",
55
55
  "reactstrap": "8.10.1",
56
56
  "tslib": "2.5.2",
57
57
  "react": "18.2.0",