sample-piral 1.4.0-beta.6257 → 1.4.0-beta.6276
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.bb2530.js → index.5d6015.js} +57 -6
- package/app/index.5d6015.js.map +1 -0
- package/app/index.d.ts +10 -2
- package/app/index.html +1 -1
- package/app/index.js +1 -1
- package/files.tar +0 -0
- package/files_once.tar +0 -0
- package/package.json +8 -8
- package/app/index.bb2530.js.map +0 -1
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>, isOverriding?: boolean): void;
|
|
183
|
+
addTranslations(messagesList: Array<(LocalizationMessages | NestedLocalizationMessages)>, 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): void;
|
|
205
|
+
setTranslations(messages: LocalizationMessages | NestedLocalizationMessages): void;
|
|
206
206
|
/**
|
|
207
207
|
* Gets the currently provided translations by the pilet.
|
|
208
208
|
*/
|
|
@@ -454,6 +454,10 @@ export interface LocalizationMessages {
|
|
|
454
454
|
[lang: string]: Translations;
|
|
455
455
|
}
|
|
456
456
|
|
|
457
|
+
export interface NestedLocalizationMessages {
|
|
458
|
+
[lang: string]: NestedTranslations;
|
|
459
|
+
}
|
|
460
|
+
|
|
457
461
|
export type TileComponentProps = BaseComponentProps & BareTileComponentProps;
|
|
458
462
|
|
|
459
463
|
export interface TilePreferences extends PiralCustomTilePreferences {
|
|
@@ -709,6 +713,10 @@ export interface Translations {
|
|
|
709
713
|
[tag: string]: string;
|
|
710
714
|
}
|
|
711
715
|
|
|
716
|
+
export interface NestedTranslations {
|
|
717
|
+
[tag: string]: string | NestedTranslations;
|
|
718
|
+
}
|
|
719
|
+
|
|
712
720
|
/**
|
|
713
721
|
* The props that every registered component obtains.
|
|
714
722
|
*/
|
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.
|
|
8
|
+
<script defer src="/index.5d6015.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.
|
|
5
|
+
require('./index.5d6015.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.
|
|
4
|
+
"version": "1.4.0-beta.6276",
|
|
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.
|
|
34
|
+
"version": "1.4.0-beta.6276",
|
|
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.
|
|
48
|
-
"piral-cli-webpack5": "^1.4.0-beta.
|
|
47
|
+
"piral-cli": "^1.4.0-beta.6276",
|
|
48
|
+
"piral-cli-webpack5": "^1.4.0-beta.6276",
|
|
49
49
|
"sass": "^1.17.0",
|
|
50
50
|
"bootstrap": "^4.3.1",
|
|
51
|
-
"piral": "^1.4.0-beta.
|
|
52
|
-
"piral-auth": "^1.4.0-beta.
|
|
53
|
-
"piral-hooks-utils": "^1.4.0-beta.
|
|
54
|
-
"piral-search": "^1.4.0-beta.
|
|
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",
|
|
55
55
|
"reactstrap": "8.10.1",
|
|
56
56
|
"tslib": "2.5.2",
|
|
57
57
|
"react": "18.2.0",
|