sample-piral 1.4.0-beta.6260 → 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.61c804.js → index.4e6122.js} +68 -15
- package/app/index.4e6122.js.map +1 -0
- package/app/index.d.ts +12 -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.61c804.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<
|
|
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:
|
|
205
|
+
setTranslations(messages: AnyLocalizationMessages): void;
|
|
206
206
|
/**
|
|
207
207
|
* Gets the currently provided translations by the pilet.
|
|
208
208
|
*/
|
|
@@ -450,6 +450,8 @@ 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
|
}
|
|
@@ -705,6 +707,10 @@ export interface PiralChangeUserEvent {
|
|
|
705
707
|
current: UserInfo;
|
|
706
708
|
}
|
|
707
709
|
|
|
710
|
+
export interface NestedLocalizationMessages {
|
|
711
|
+
[lang: string]: NestedTranslations;
|
|
712
|
+
}
|
|
713
|
+
|
|
708
714
|
export interface Translations {
|
|
709
715
|
[tag: string]: string;
|
|
710
716
|
}
|
|
@@ -903,6 +909,10 @@ export interface ExtensionRegistration extends BaseRegistration {
|
|
|
903
909
|
defaults: any;
|
|
904
910
|
}
|
|
905
911
|
|
|
912
|
+
export interface NestedTranslations {
|
|
913
|
+
[tag: string]: string | NestedTranslations;
|
|
914
|
+
}
|
|
915
|
+
|
|
906
916
|
export type UnionOf<T> = {
|
|
907
917
|
[K in keyof T]: T[K];
|
|
908
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
48
|
-
"piral-cli-webpack5": "^1.4.0-beta.
|
|
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.
|
|
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.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",
|