@akinon/app-shared
Advanced tools
Comparing version 0.2.3 to 0.3.0
@@ -0,2 +1,4 @@ | ||
export * from './events'; | ||
export * from './sha256'; | ||
export * from './types'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,1 +0,14 @@ | ||
const c = {}, o = async (t) => { | ||
const n = await crypto.subtle.digest( | ||
"SHA-256", | ||
new TextEncoder().encode(JSON.stringify(t)) | ||
), s = [], a = new DataView(n); | ||
for (let e = 0; e < a.byteLength; e += 4) | ||
s.push(("00000000" + a.getUint32(e).toString(16)).slice(-8)); | ||
return s.join(""); | ||
}, h = async (t) => (await o(t)).slice(0, 7); | ||
export { | ||
c as EVENTS, | ||
h as getShortSha256, | ||
o as hashValue | ||
}; |
@@ -56,7 +56,11 @@ /** | ||
* @extends ApplicationConfig | ||
* @property {Page[]} [menu] - Optionally redefined from `ApplicationConfig` to highlight its | ||
* importance in full-page applications for defining the navigation menu. | ||
* @property {ApplicationNavigation} [navigation] - Navigation object for the | ||
* client itself. Provides a way for main applications to trigger navigation on | ||
* fullpage applications. | ||
* @property {Page[]} [menu] - List of menu items that should be handled by | ||
* shell applications. | ||
*/ | ||
export interface FullpageApplicationConfig extends ApplicationConfig { | ||
menu?: Page[]; | ||
navigation?: ApplicationNavigation; | ||
menu: Page[]; | ||
} | ||
@@ -79,3 +83,3 @@ /** | ||
export interface PluginApplicationConfig extends ApplicationConfig { | ||
placeholderId: string; | ||
placeholderId: string | string[]; | ||
} | ||
@@ -116,2 +120,11 @@ /** | ||
/** | ||
* Defines the structure of an application's parameters. | ||
* @typedef {Object} ApplicationParams | ||
* @property {string} [key] - The key of the parameter. | ||
* @property {string | number | boolean | string[] | number[]} [value] - The value of the parameter. | ||
*/ | ||
export interface ApplicationParams { | ||
[key: string]: string | number | boolean | string[] | number[]; | ||
} | ||
/** | ||
* Represents a custom event with flexible data structure for storing event-specific data. | ||
@@ -118,0 +131,0 @@ * @typedef {Object} CustomDataEvent |
{ | ||
"name": "@akinon/app-shared", | ||
"description": "Shared utilities and helper functions for app-shell and app-client packages.", | ||
"version": "0.2.3", | ||
"version": "0.3.0", | ||
"private": false, | ||
@@ -15,4 +15,4 @@ "type": "module", | ||
"clean-package": "2.2.0", | ||
"eslint-config-custom": "0.1.0", | ||
"@akinon/vite-config": "^0.1.1", | ||
"eslint-config-custom": "0.1.0", | ||
"tsconfig": "0.0.0" | ||
@@ -19,0 +19,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
10402
12
164