@appsemble/types
Advanced tools
Comparing version 0.18.10 to 0.18.11
@@ -9,2 +9,3 @@ import { Action, BaseMessage, HTTPMethods, LogAction, Theme } from '@appsemble/sdk/src/types'; | ||
export * from './resource'; | ||
export * from './template'; | ||
export { Theme }; | ||
@@ -878,2 +879,6 @@ /** | ||
$updated?: string; | ||
/** | ||
* Any pre-included translations of the app. | ||
*/ | ||
messages?: AppsembleMessages; | ||
} | ||
@@ -983,2 +988,40 @@ /** | ||
/** | ||
* The layout used to store Appsemble messages. | ||
*/ | ||
export interface AppsembleMessages { | ||
/** | ||
* Messages related to the Appsemble core. | ||
* | ||
* This may be an empty object if the language is the default locale. | ||
*/ | ||
core: Record<string, string>; | ||
/** | ||
* Translations for global block messages and meta properties of the app. | ||
* | ||
* This may be an empty object if the language is the default locale. | ||
*/ | ||
app: Record<string, string>; | ||
/** | ||
* A list of messages specific to the app. | ||
*/ | ||
messageIds: Record<string, string>; | ||
/** | ||
* A list of messages specific to each block used in the app. | ||
* | ||
* At root the keys represent a block type. | ||
* One layer deep the keys represent a block version. | ||
* Two layers deep the keys represent the key/message pairs. | ||
* | ||
* @example | ||
* { | ||
* "<at>example/test": { | ||
* "0.0.0": { | ||
* "exampleKey": "Example Message" | ||
* } | ||
* } | ||
* } | ||
*/ | ||
blocks: Record<string, Record<string, Record<string, string>>>; | ||
} | ||
/** | ||
* Translated messages for an app or block. | ||
@@ -998,3 +1041,3 @@ */ | ||
*/ | ||
messages: Record<string, string>; | ||
messages: AppsembleMessages; | ||
} | ||
@@ -1009,31 +1052,3 @@ export interface AppMessages { | ||
*/ | ||
messages: { | ||
/** | ||
* Messages related to the Appsemble core. | ||
* | ||
* This may be an empty object if the language is the default locale. | ||
*/ | ||
core: Record<string, string>; | ||
/** | ||
* A list of messages specific to the app. | ||
*/ | ||
app: Record<string, string>; | ||
/** | ||
* A list of messages specific to each block used in the app. | ||
* | ||
* At root the keys represent a block type. | ||
* One layer deep the keys represent a block version. | ||
* Two layers deep the keys represent the key/message pairs. | ||
* | ||
* @example | ||
* { | ||
* "<at>example/test": { | ||
* "0.0.0": { | ||
* "exampleKey": "Example Message" | ||
* } | ||
* } | ||
* } | ||
*/ | ||
blocks: Record<string, Record<string, Record<string, string>>>; | ||
}; | ||
messages: AppsembleMessages; | ||
} | ||
@@ -1040,0 +1055,0 @@ /** |
export * from './author'; | ||
export * from './snapshot'; | ||
export * from './resource'; | ||
export * from './template'; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@appsemble/types", | ||
"version": "0.18.10", | ||
"version": "0.18.11", | ||
"description": "TypeScript definitions reused within Appsemble internally", | ||
@@ -21,3 +21,3 @@ "keywords": [ | ||
}, | ||
"license": "LGPL-3.0-or-later", | ||
"license": "LGPL-3.0-only", | ||
"author": "Appsemble <info@appsemble.com> (https://appsemble.com)", | ||
@@ -34,8 +34,8 @@ "sideEffects": false, | ||
"dependencies": { | ||
"@appsemble/sdk": "0.18.10", | ||
"@appsemble/sdk": "0.18.11", | ||
"@fortawesome/fontawesome-common-types": "^0.2.35", | ||
"jsonschema": "^1.4.0", | ||
"openapi-types": "^7.2.3", | ||
"type-fest": "^1.0.1" | ||
"type-fest": "^1.1.1" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Copyleft License
License(Experimental) Copyleft license information was found.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Copyleft License
License(Experimental) Copyleft license information was found.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
Found 1 instance in 1 package
35355
17
1251
+ Added@appsemble/sdk@0.18.11(transitive)
- Removed@appsemble/sdk@0.18.10(transitive)
Updated@appsemble/sdk@0.18.11
Updatedtype-fest@^1.1.1