@akinon/app-shared 0.1.0

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/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # @akinon/app-shared
2
+
3
+ This package contains shared code and functionality with `@akinon/app-shell` and `@akinon/app-client` packages.
package/dist/index.cjs ADDED
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,2 @@
1
+ export * from './types';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,47 @@
1
+ export type RegisteredAppType = 'fullpage' | 'plugin';
2
+ export type RegisteredApp = {
3
+ id: number;
4
+ url: string;
5
+ slug: string;
6
+ type: RegisteredAppType;
7
+ };
8
+ export type Page = {
9
+ path: string;
10
+ label: string;
11
+ };
12
+ export interface AppClientConfig {
13
+ isDev?: boolean;
14
+ forceRedirect?: boolean;
15
+ menu?: Page[];
16
+ }
17
+ export type AppConfig = {
18
+ /** Authentication token. */
19
+ token: string | null;
20
+ language: string;
21
+ };
22
+ export interface ApplicationData {
23
+ [key: string]: any;
24
+ }
25
+ export type CustomDataEvent = {
26
+ [key: string]: any;
27
+ };
28
+ export interface ParentModel {
29
+ appConfig: AppConfig;
30
+ }
31
+ export interface ChildModel {
32
+ pages: Page[];
33
+ }
34
+ export interface HandshakeEmitMap {
35
+ navigateViaChild: {
36
+ path: string;
37
+ label?: string;
38
+ };
39
+ customData: CustomDataEvent;
40
+ }
41
+ export interface HandshakeCallMap {
42
+ navigateViaParent: {
43
+ path: string;
44
+ };
45
+ receiveCustomData: CustomDataEvent;
46
+ }
47
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts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
+ {
2
+ "name": "@akinon/app-shared",
3
+ "description": "Shared utilities and helper functions for app-shell and app-client packages.",
4
+ "version": "0.1.0",
5
+ "private": false,
6
+ "type": "module",
7
+ "main": "dist/index.js",
8
+ "module": "dist/index.js",
9
+ "files": [
10
+ "dist"
11
+ ],
12
+ "dependencies": {},
13
+ "devDependencies": {
14
+ "clean-package": "2.2.0",
15
+ "@akinon/vite-config": "^0.1.1",
16
+ "eslint-config-custom": "0.1.0",
17
+ "tsconfig": "0.0.0"
18
+ },
19
+ "peerDependencies": {},
20
+ "clean-package": "../../clean-package.config.json",
21
+ "types": "dist/index.d.ts",
22
+ "exports": {
23
+ ".": {
24
+ "types": "./dist/index.d.ts",
25
+ "import": "./dist/index.js",
26
+ "require": "./dist/index.cjs"
27
+ },
28
+ "./package.json": "./package.json"
29
+ },
30
+ "scripts": {
31
+ "build": "vite build",
32
+ "lint": "eslint *.ts*",
33
+ "test": "vitest run",
34
+ "test:ui": "vitest --ui",
35
+ "test:watch": "vitest watch",
36
+ "typecheck": "tsc --noEmit"
37
+ }
38
+ }