@akinon/app-shared
Advanced tools
Comparing version 0.9.0 to 0.10.0
@@ -8,3 +8,3 @@ export declare const EVENTS: { | ||
*/ | ||
SET_APP_ID: string; | ||
readonly SET_APP_ID: "SET_APP_ID"; | ||
/** | ||
@@ -16,3 +16,3 @@ * The event that is emitted when client applications | ||
*/ | ||
SET_CONFIG: string; | ||
readonly SET_CONFIG: "SET_CONFIG"; | ||
/** | ||
@@ -24,3 +24,3 @@ * The event that is emitted when the AppShell sends | ||
*/ | ||
SET_DATA: string; | ||
readonly SET_DATA: "SET_DATA"; | ||
/** | ||
@@ -32,3 +32,3 @@ * The event that is emitted when client applications | ||
*/ | ||
SET_HEIGHT: string; | ||
readonly SET_HEIGHT: "SET_HEIGHT"; | ||
/** | ||
@@ -40,3 +40,3 @@ * The event that is emitted to client applications when params property | ||
*/ | ||
SET_PARAMS: string; | ||
readonly SET_PARAMS: "SET_PARAMS"; | ||
/** | ||
@@ -48,3 +48,3 @@ * The event that is emitted when client applications trigger | ||
*/ | ||
INVOKE_ACTION: string; | ||
readonly INVOKE_ACTION: "INVOKE_ACTION"; | ||
/** | ||
@@ -56,3 +56,3 @@ * The event that is emitted when client applications trigger | ||
*/ | ||
INVOKE_DEFAULT_ACTION: string; | ||
readonly INVOKE_DEFAULT_ACTION: "INVOKE_DEFAULT_ACTION"; | ||
/** | ||
@@ -64,3 +64,3 @@ * The event that is emitted when client applications trigger | ||
*/ | ||
NAVIGATE: string; | ||
readonly NAVIGATE: "NAVIGATE"; | ||
/** | ||
@@ -72,3 +72,9 @@ * The event that is emitted when shell applications trigger | ||
*/ | ||
NAVIGATE_CHILD: string; | ||
readonly NAVIGATE_CHILD: "NAVIGATE_CHILD"; | ||
/** | ||
* The event that is emitted when the locale changes in the shell application. | ||
* | ||
* AppShell → AppClient | ||
*/ | ||
readonly LOCALE_CHANGED: "LOCALE_CHANGED"; | ||
}; | ||
@@ -75,0 +81,0 @@ export declare const DEFAULT_ACTION_KEYS: { |
@@ -67,3 +67,9 @@ "use strict"; | ||
*/ | ||
NAVIGATE_CHILD: 'NAVIGATE_CHILD' | ||
NAVIGATE_CHILD: 'NAVIGATE_CHILD', | ||
/** | ||
* The event that is emitted when the locale changes in the shell application. | ||
* | ||
* AppShell → AppClient | ||
*/ | ||
LOCALE_CHANGED: 'LOCALE_CHANGED' | ||
}; | ||
@@ -70,0 +76,0 @@ exports.DEFAULT_ACTION_KEYS = { |
@@ -5,3 +5,3 @@ /// <reference types="node" /> | ||
* Represents the type of a registered application within the system. | ||
* @typedef {('fullpage' | 'plugin')} RegisteredAppType | ||
* @typedef {('full_page' | 'plugin')} RegisteredAppType | ||
*/ | ||
@@ -8,0 +8,0 @@ export type RegisteredAppType = 'full_page' | 'plugin'; |
@@ -8,3 +8,3 @@ export declare const EVENTS: { | ||
*/ | ||
SET_APP_ID: string; | ||
readonly SET_APP_ID: "SET_APP_ID"; | ||
/** | ||
@@ -16,3 +16,3 @@ * The event that is emitted when client applications | ||
*/ | ||
SET_CONFIG: string; | ||
readonly SET_CONFIG: "SET_CONFIG"; | ||
/** | ||
@@ -24,3 +24,3 @@ * The event that is emitted when the AppShell sends | ||
*/ | ||
SET_DATA: string; | ||
readonly SET_DATA: "SET_DATA"; | ||
/** | ||
@@ -32,3 +32,3 @@ * The event that is emitted when client applications | ||
*/ | ||
SET_HEIGHT: string; | ||
readonly SET_HEIGHT: "SET_HEIGHT"; | ||
/** | ||
@@ -40,3 +40,3 @@ * The event that is emitted to client applications when params property | ||
*/ | ||
SET_PARAMS: string; | ||
readonly SET_PARAMS: "SET_PARAMS"; | ||
/** | ||
@@ -48,3 +48,3 @@ * The event that is emitted when client applications trigger | ||
*/ | ||
INVOKE_ACTION: string; | ||
readonly INVOKE_ACTION: "INVOKE_ACTION"; | ||
/** | ||
@@ -56,3 +56,3 @@ * The event that is emitted when client applications trigger | ||
*/ | ||
INVOKE_DEFAULT_ACTION: string; | ||
readonly INVOKE_DEFAULT_ACTION: "INVOKE_DEFAULT_ACTION"; | ||
/** | ||
@@ -64,3 +64,3 @@ * The event that is emitted when client applications trigger | ||
*/ | ||
NAVIGATE: string; | ||
readonly NAVIGATE: "NAVIGATE"; | ||
/** | ||
@@ -72,3 +72,9 @@ * The event that is emitted when shell applications trigger | ||
*/ | ||
NAVIGATE_CHILD: string; | ||
readonly NAVIGATE_CHILD: "NAVIGATE_CHILD"; | ||
/** | ||
* The event that is emitted when the locale changes in the shell application. | ||
* | ||
* AppShell → AppClient | ||
*/ | ||
readonly LOCALE_CHANGED: "LOCALE_CHANGED"; | ||
}; | ||
@@ -75,0 +81,0 @@ export declare const DEFAULT_ACTION_KEYS: { |
@@ -64,3 +64,9 @@ export const EVENTS = { | ||
*/ | ||
NAVIGATE_CHILD: 'NAVIGATE_CHILD' | ||
NAVIGATE_CHILD: 'NAVIGATE_CHILD', | ||
/** | ||
* The event that is emitted when the locale changes in the shell application. | ||
* | ||
* AppShell → AppClient | ||
*/ | ||
LOCALE_CHANGED: 'LOCALE_CHANGED' | ||
}; | ||
@@ -67,0 +73,0 @@ export const DEFAULT_ACTION_KEYS = { |
@@ -5,3 +5,3 @@ /// <reference types="node" /> | ||
* Represents the type of a registered application within the system. | ||
* @typedef {('fullpage' | 'plugin')} RegisteredAppType | ||
* @typedef {('full_page' | 'plugin')} RegisteredAppType | ||
*/ | ||
@@ -8,0 +8,0 @@ export type RegisteredAppType = 'full_page' | 'plugin'; |
{ | ||
"name": "@akinon/app-shared", | ||
"description": "Shared utilities and helper functions for app-shell and app-client packages.", | ||
"version": "0.9.0", | ||
"version": "0.10.0", | ||
"private": false, | ||
@@ -12,11 +12,27 @@ "type": "module", | ||
], | ||
"scripts": { | ||
"build": "pnpm run build:esm && pnpm run build:commonjs && pnpm run copy:files", | ||
"build:esm": "tsc --outDir dist/esm", | ||
"build:commonjs": "tsc --module commonjs --outDir dist/cjs", | ||
"copy:files": "copyfiles -u 1 src/**/*.css dist/esm && copyfiles -u 1 src/**/*.css dist/cjs", | ||
"clean": "rimraf dist/", | ||
"lint": "eslint *.ts*", | ||
"test": "vitest run", | ||
"test:coverage": "vitest run --coverage", | ||
"test:ui": "vitest --ui", | ||
"test:watch": "vitest watch", | ||
"typecheck": "tsc --noEmit", | ||
"prepublishOnly": "pnpm run build", | ||
"prepack": "clean-package", | ||
"postpack": "clean-package restore" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"@akinon/vite-config": "workspace:*", | ||
"@akinon/eslint-config": "workspace:*", | ||
"@akinon/typescript-config": "workspace:*", | ||
"clean-package": "2.2.0", | ||
"copyfiles": "^2.4.1", | ||
"rimraf": "^5.0.5", | ||
"typescript": "^5.2.2", | ||
"@akinon/typescript-config": "0.2.0", | ||
"@akinon/eslint-config": "0.1.0", | ||
"@akinon/vite-config": "0.4.0" | ||
"typescript": "^5.2.2" | ||
}, | ||
@@ -32,15 +48,3 @@ "clean-package": "../../clean-package.config.json", | ||
"./package.json": "./package.json" | ||
}, | ||
"scripts": { | ||
"build": "pnpm run build:esm && pnpm run build:commonjs && pnpm run copy:files", | ||
"build:esm": "tsc --outDir dist/esm", | ||
"build:commonjs": "tsc --module commonjs --outDir dist/cjs", | ||
"copy:files": "copyfiles -u 1 src/**/*.css dist/esm && copyfiles -u 1 src/**/*.css dist/cjs", | ||
"clean": "rimraf dist/", | ||
"lint": "eslint *.ts*", | ||
"test": "vitest run", | ||
"test:ui": "vitest --ui", | ||
"test:watch": "vitest watch", | ||
"typecheck": "tsc --noEmit" | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
34871
749