@akinon/app-shared 0.11.0 → 0.13.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/dist/cjs/events.d.ts +14 -0
- package/dist/cjs/events.d.ts.map +1 -1
- package/dist/cjs/events.js +14 -0
- package/dist/cjs/sha256.d.ts +2 -2
- package/dist/cjs/sha256.d.ts.map +1 -1
- package/dist/cjs/types.d.ts +24 -5
- package/dist/cjs/types.d.ts.map +1 -1
- package/dist/esm/events.d.ts +14 -0
- package/dist/esm/events.d.ts.map +1 -1
- package/dist/esm/events.js +14 -0
- package/dist/esm/sha256.d.ts +2 -2
- package/dist/esm/sha256.d.ts.map +1 -1
- package/dist/esm/types.d.ts +24 -5
- package/dist/esm/types.d.ts.map +1 -1
- package/package.json +1 -8
package/dist/cjs/events.d.ts
CHANGED
|
@@ -62,6 +62,20 @@ export declare const EVENTS: {
|
|
|
62
62
|
* AppShell → AppClient
|
|
63
63
|
*/
|
|
64
64
|
readonly NAVIGATE_CHILD: "NAVIGATE_CHILD";
|
|
65
|
+
/**
|
|
66
|
+
* The event that is emitted when the shell application confirms
|
|
67
|
+
* an action, which the client application should listen for to trigger onConfirm.
|
|
68
|
+
*
|
|
69
|
+
* AppShell → AppClient
|
|
70
|
+
*/
|
|
71
|
+
readonly ACTION_CONFIRMED: "ACTION_CONFIRMED";
|
|
72
|
+
/**
|
|
73
|
+
* The event that is emitted when an action is canceled in the shell application.
|
|
74
|
+
* This event allows the client to clear any associated event listeners.
|
|
75
|
+
*
|
|
76
|
+
* AppShell → AppClient
|
|
77
|
+
*/
|
|
78
|
+
readonly ACTION_CANCELED: "ACTION_CANCELED";
|
|
65
79
|
/**
|
|
66
80
|
* The event that is emitted when the locale changes in the shell application.
|
|
67
81
|
*
|
package/dist/cjs/events.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/events.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;IACjB;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;OAIG;;CAEK,CAAC;AAEX,eAAO,MAAM,mBAAmB;;;;;;CAM/B,CAAC"}
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/events.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;IACjB;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;OAIG;;CAEK,CAAC;AAEX,eAAO,MAAM,mBAAmB;;;;;;CAM/B,CAAC"}
|
package/dist/cjs/events.js
CHANGED
|
@@ -65,6 +65,20 @@ exports.EVENTS = {
|
|
|
65
65
|
* AppShell → AppClient
|
|
66
66
|
*/
|
|
67
67
|
NAVIGATE_CHILD: 'NAVIGATE_CHILD',
|
|
68
|
+
/**
|
|
69
|
+
* The event that is emitted when the shell application confirms
|
|
70
|
+
* an action, which the client application should listen for to trigger onConfirm.
|
|
71
|
+
*
|
|
72
|
+
* AppShell → AppClient
|
|
73
|
+
*/
|
|
74
|
+
ACTION_CONFIRMED: 'ACTION_CONFIRMED',
|
|
75
|
+
/**
|
|
76
|
+
* The event that is emitted when an action is canceled in the shell application.
|
|
77
|
+
* This event allows the client to clear any associated event listeners.
|
|
78
|
+
*
|
|
79
|
+
* AppShell → AppClient
|
|
80
|
+
*/
|
|
81
|
+
ACTION_CANCELED: 'ACTION_CANCELED',
|
|
68
82
|
/**
|
|
69
83
|
* The event that is emitted when the locale changes in the shell application.
|
|
70
84
|
*
|
package/dist/cjs/sha256.d.ts
CHANGED
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
* @param val - Any object or value to hash with SHA256.
|
|
5
5
|
* @returns
|
|
6
6
|
*/
|
|
7
|
-
export declare const hashValue: (val:
|
|
7
|
+
export declare const hashValue: (val: unknown) => Promise<string>;
|
|
8
8
|
/**
|
|
9
9
|
* Returns the first 7 chars of hashed value. Sohuld be unique.
|
|
10
10
|
*
|
|
11
11
|
* @param val - Any object or value to hash with SHA256.
|
|
12
12
|
*/
|
|
13
|
-
export declare const getShortSha256: (val:
|
|
13
|
+
export declare const getShortSha256: (val: unknown) => Promise<string>;
|
|
14
14
|
//# sourceMappingURL=sha256.d.ts.map
|
package/dist/cjs/sha256.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sha256.d.ts","sourceRoot":"","sources":["../../src/sha256.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,SAAS,QAAe,
|
|
1
|
+
{"version":3,"file":"sha256.d.ts","sourceRoot":"","sources":["../../src/sha256.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,SAAS,QAAe,OAAO,oBAY3C,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,cAAc,QAAe,OAAO,oBAGhD,CAAC"}
|
package/dist/cjs/types.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { UUID } from 'crypto';
|
|
1
|
+
import type { UUID } from 'crypto';
|
|
3
2
|
/**
|
|
4
3
|
* Represents the type of a registered application within the system.
|
|
5
4
|
* @typedef {('full_page' | 'plugin')} RegisteredAppType
|
|
@@ -91,6 +90,11 @@ export interface PluginApplicationConfig extends ApplicationConfig {
|
|
|
91
90
|
export interface ApplicationData {
|
|
92
91
|
[key: string]: any;
|
|
93
92
|
}
|
|
93
|
+
export type ApplicationModalSize = {
|
|
94
|
+
maxWidth?: number | string;
|
|
95
|
+
maxHeight?: number | string;
|
|
96
|
+
};
|
|
97
|
+
export type ApplicationToastType = 'success' | 'warning' | 'error' | 'loading' | 'destroy';
|
|
94
98
|
/**
|
|
95
99
|
* Defines actions that can be shared across applications, including default UI actions and custom actions.
|
|
96
100
|
* @typedef {Object} ApplicationActions
|
|
@@ -98,21 +102,36 @@ export interface ApplicationData {
|
|
|
98
102
|
* @property {Function} [showConfirmationDialog] - Optional. A function to show a confirmation dialog.
|
|
99
103
|
* @property {Function} [showToast] - Optional. A function to show a toast message.
|
|
100
104
|
* @property {Function} [showErrorMessage] - Optional. A function to display an error message.
|
|
105
|
+
* @property {Function} [showRichModal] - Optional. A function to show a rich modal.
|
|
106
|
+
* @property {Function} [closeRichModal] - Optional. A function to close a rich modal.
|
|
101
107
|
* @property {Object} actions - A collection of custom actions that can be invoked.
|
|
102
108
|
*/
|
|
103
109
|
export interface ApplicationActions {
|
|
104
110
|
showModalDialog?: (title: string, content: string) => void;
|
|
105
|
-
showConfirmationDialog?: (title: string, content: string) => boolean;
|
|
106
|
-
showToast?: (content: string, type:
|
|
111
|
+
showConfirmationDialog?: (title: string, content: string, onOk: (confirmedData: unknown) => void, onCancel: () => void) => boolean;
|
|
112
|
+
showToast?: (content: string, type: ApplicationToastType) => void;
|
|
107
113
|
showErrorMessage?: (title: string, content: string) => void;
|
|
108
|
-
showRichModal?: (uuid: UUID, path: string, context?: unknown) => void;
|
|
114
|
+
showRichModal?: (uuid: UUID, path: string, context?: unknown, size?: ApplicationModalSize, closeIconColor?: string) => void;
|
|
115
|
+
closeRichModal?: (uuid: UUID) => void;
|
|
109
116
|
actions: {
|
|
110
117
|
[key: string]: (...args: any[]) => any;
|
|
111
118
|
};
|
|
112
119
|
}
|
|
120
|
+
/**
|
|
121
|
+
* Defines the structure of the payload for navigation within the shell application.
|
|
122
|
+
*/
|
|
113
123
|
export interface ShellNavigationPayload {
|
|
124
|
+
/**
|
|
125
|
+
* The unique identifier of the navigation target.
|
|
126
|
+
*/
|
|
114
127
|
id?: number | UUID;
|
|
128
|
+
/**
|
|
129
|
+
* The path to navigate to.
|
|
130
|
+
*/
|
|
115
131
|
path: string;
|
|
132
|
+
/**
|
|
133
|
+
* Indicates if the navigation is external.
|
|
134
|
+
*/
|
|
116
135
|
external?: boolean;
|
|
117
136
|
}
|
|
118
137
|
/**
|
package/dist/cjs/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAEnC;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,WAAW,GAAG,QAAQ,CAAC;AAEvD;;;;;;;;GAQG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,iBAAiB,CAAC;CACzB,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,IAAI,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;;;;;;;;GAUG;AACH,MAAM,WAAW,iBAAiB;IAChC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,yBAA0B,SAAQ,iBAAiB;IAClE,UAAU,CAAC,EAAE,qBAAqB,CAAC;IACnC,IAAI,EAAE,IAAI,EAAE,CAAC;CACd;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,WAAW,uBAAwB,SAAQ,iBAAiB;IAChE,aAAa,EAAE,MAAM,GAAG,MA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AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;GAKG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,CAAC,OAAO,EAAE,sBAAsB,KAAK,IAAI,CAAC;CACrD;AAED,MAAM,WAAW,4BAA4B;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED;;;;;GAKG;AACH,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,CAAC,OAAO,EAAE,4BAA4B,KAAK,IAAI,CAAC;CAC3D;AAED;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB;IAChC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC;CAChE;AAED;;;GAGG;AAEH,MAAM,MAAM,eAAe,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,CAAC"}
|
package/dist/esm/events.d.ts
CHANGED
|
@@ -62,6 +62,20 @@ export declare const EVENTS: {
|
|
|
62
62
|
* AppShell → AppClient
|
|
63
63
|
*/
|
|
64
64
|
readonly NAVIGATE_CHILD: "NAVIGATE_CHILD";
|
|
65
|
+
/**
|
|
66
|
+
* The event that is emitted when the shell application confirms
|
|
67
|
+
* an action, which the client application should listen for to trigger onConfirm.
|
|
68
|
+
*
|
|
69
|
+
* AppShell → AppClient
|
|
70
|
+
*/
|
|
71
|
+
readonly ACTION_CONFIRMED: "ACTION_CONFIRMED";
|
|
72
|
+
/**
|
|
73
|
+
* The event that is emitted when an action is canceled in the shell application.
|
|
74
|
+
* This event allows the client to clear any associated event listeners.
|
|
75
|
+
*
|
|
76
|
+
* AppShell → AppClient
|
|
77
|
+
*/
|
|
78
|
+
readonly ACTION_CANCELED: "ACTION_CANCELED";
|
|
65
79
|
/**
|
|
66
80
|
* The event that is emitted when the locale changes in the shell application.
|
|
67
81
|
*
|
package/dist/esm/events.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/events.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;IACjB;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;OAIG;;CAEK,CAAC;AAEX,eAAO,MAAM,mBAAmB;;;;;;CAM/B,CAAC"}
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/events.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;IACjB;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;OAIG;;CAEK,CAAC;AAEX,eAAO,MAAM,mBAAmB;;;;;;CAM/B,CAAC"}
|
package/dist/esm/events.js
CHANGED
|
@@ -62,6 +62,20 @@ export const EVENTS = {
|
|
|
62
62
|
* AppShell → AppClient
|
|
63
63
|
*/
|
|
64
64
|
NAVIGATE_CHILD: 'NAVIGATE_CHILD',
|
|
65
|
+
/**
|
|
66
|
+
* The event that is emitted when the shell application confirms
|
|
67
|
+
* an action, which the client application should listen for to trigger onConfirm.
|
|
68
|
+
*
|
|
69
|
+
* AppShell → AppClient
|
|
70
|
+
*/
|
|
71
|
+
ACTION_CONFIRMED: 'ACTION_CONFIRMED',
|
|
72
|
+
/**
|
|
73
|
+
* The event that is emitted when an action is canceled in the shell application.
|
|
74
|
+
* This event allows the client to clear any associated event listeners.
|
|
75
|
+
*
|
|
76
|
+
* AppShell → AppClient
|
|
77
|
+
*/
|
|
78
|
+
ACTION_CANCELED: 'ACTION_CANCELED',
|
|
65
79
|
/**
|
|
66
80
|
* The event that is emitted when the locale changes in the shell application.
|
|
67
81
|
*
|
package/dist/esm/sha256.d.ts
CHANGED
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
* @param val - Any object or value to hash with SHA256.
|
|
5
5
|
* @returns
|
|
6
6
|
*/
|
|
7
|
-
export declare const hashValue: (val:
|
|
7
|
+
export declare const hashValue: (val: unknown) => Promise<string>;
|
|
8
8
|
/**
|
|
9
9
|
* Returns the first 7 chars of hashed value. Sohuld be unique.
|
|
10
10
|
*
|
|
11
11
|
* @param val - Any object or value to hash with SHA256.
|
|
12
12
|
*/
|
|
13
|
-
export declare const getShortSha256: (val:
|
|
13
|
+
export declare const getShortSha256: (val: unknown) => Promise<string>;
|
|
14
14
|
//# sourceMappingURL=sha256.d.ts.map
|
package/dist/esm/sha256.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sha256.d.ts","sourceRoot":"","sources":["../../src/sha256.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,SAAS,QAAe,
|
|
1
|
+
{"version":3,"file":"sha256.d.ts","sourceRoot":"","sources":["../../src/sha256.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,SAAS,QAAe,OAAO,oBAY3C,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,cAAc,QAAe,OAAO,oBAGhD,CAAC"}
|
package/dist/esm/types.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { UUID } from 'crypto';
|
|
1
|
+
import type { UUID } from 'crypto';
|
|
3
2
|
/**
|
|
4
3
|
* Represents the type of a registered application within the system.
|
|
5
4
|
* @typedef {('full_page' | 'plugin')} RegisteredAppType
|
|
@@ -91,6 +90,11 @@ export interface PluginApplicationConfig extends ApplicationConfig {
|
|
|
91
90
|
export interface ApplicationData {
|
|
92
91
|
[key: string]: any;
|
|
93
92
|
}
|
|
93
|
+
export type ApplicationModalSize = {
|
|
94
|
+
maxWidth?: number | string;
|
|
95
|
+
maxHeight?: number | string;
|
|
96
|
+
};
|
|
97
|
+
export type ApplicationToastType = 'success' | 'warning' | 'error' | 'loading' | 'destroy';
|
|
94
98
|
/**
|
|
95
99
|
* Defines actions that can be shared across applications, including default UI actions and custom actions.
|
|
96
100
|
* @typedef {Object} ApplicationActions
|
|
@@ -98,21 +102,36 @@ export interface ApplicationData {
|
|
|
98
102
|
* @property {Function} [showConfirmationDialog] - Optional. A function to show a confirmation dialog.
|
|
99
103
|
* @property {Function} [showToast] - Optional. A function to show a toast message.
|
|
100
104
|
* @property {Function} [showErrorMessage] - Optional. A function to display an error message.
|
|
105
|
+
* @property {Function} [showRichModal] - Optional. A function to show a rich modal.
|
|
106
|
+
* @property {Function} [closeRichModal] - Optional. A function to close a rich modal.
|
|
101
107
|
* @property {Object} actions - A collection of custom actions that can be invoked.
|
|
102
108
|
*/
|
|
103
109
|
export interface ApplicationActions {
|
|
104
110
|
showModalDialog?: (title: string, content: string) => void;
|
|
105
|
-
showConfirmationDialog?: (title: string, content: string) => boolean;
|
|
106
|
-
showToast?: (content: string, type:
|
|
111
|
+
showConfirmationDialog?: (title: string, content: string, onOk: (confirmedData: unknown) => void, onCancel: () => void) => boolean;
|
|
112
|
+
showToast?: (content: string, type: ApplicationToastType) => void;
|
|
107
113
|
showErrorMessage?: (title: string, content: string) => void;
|
|
108
|
-
showRichModal?: (uuid: UUID, path: string, context?: unknown) => void;
|
|
114
|
+
showRichModal?: (uuid: UUID, path: string, context?: unknown, size?: ApplicationModalSize, closeIconColor?: string) => void;
|
|
115
|
+
closeRichModal?: (uuid: UUID) => void;
|
|
109
116
|
actions: {
|
|
110
117
|
[key: string]: (...args: any[]) => any;
|
|
111
118
|
};
|
|
112
119
|
}
|
|
120
|
+
/**
|
|
121
|
+
* Defines the structure of the payload for navigation within the shell application.
|
|
122
|
+
*/
|
|
113
123
|
export interface ShellNavigationPayload {
|
|
124
|
+
/**
|
|
125
|
+
* The unique identifier of the navigation target.
|
|
126
|
+
*/
|
|
114
127
|
id?: number | UUID;
|
|
128
|
+
/**
|
|
129
|
+
* The path to navigate to.
|
|
130
|
+
*/
|
|
115
131
|
path: string;
|
|
132
|
+
/**
|
|
133
|
+
* Indicates if the navigation is external.
|
|
134
|
+
*/
|
|
116
135
|
external?: boolean;
|
|
117
136
|
}
|
|
118
137
|
/**
|
package/dist/esm/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAEnC;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,WAAW,GAAG,QAAQ,CAAC;AAEvD;;;;;;;;GAQG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,iBAAiB,CAAC;CACzB,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,IAAI,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;;;;;;;;GAUG;AACH,MAAM,WAAW,iBAAiB;IAChC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;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B,cAAc,CAAC,EAAE,MAAM,KACpB,IAAI,CAAC;IACV,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IAEtC,OAAO,EAAE;QAGP,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;KACxC,CAAC;CACH;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;GAKG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,CAAC,OAAO,EAAE,sBAAsB,KAAK,IAAI,CAAC;CACrD;AAED,MAAM,WAAW,4BAA4B;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED;;;;;GAKG;AACH,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,CAAC,OAAO,EAAE,4BAA4B,KAAK,IAAI,CAAC;CAC3D;AAED;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB;IAChC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC;CAChE;AAED;;;GAGG;AAEH,MAAM,MAAM,eAAe,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akinon/app-shared",
|
|
3
3
|
"description": "Shared utilities and helper functions for app-shell and app-client packages.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.13.0",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -15,8 +15,6 @@
|
|
|
15
15
|
"copyfiles": "^2.4.1",
|
|
16
16
|
"rimraf": "^5.0.5",
|
|
17
17
|
"typescript": "^5.2.2",
|
|
18
|
-
"@akinon/vite-config": "0.4.0",
|
|
19
|
-
"@akinon/eslint-config": "0.1.0",
|
|
20
18
|
"@akinon/typescript-config": "0.2.0"
|
|
21
19
|
},
|
|
22
20
|
"clean-package": "../../clean-package.config.json",
|
|
@@ -35,11 +33,6 @@
|
|
|
35
33
|
"build:commonjs": "tsc --module commonjs --outDir dist/cjs",
|
|
36
34
|
"copy:files": "copyfiles -u 1 src/**/*.css dist/esm && copyfiles -u 1 src/**/*.css dist/cjs",
|
|
37
35
|
"clean": "rimraf dist/",
|
|
38
|
-
"lint": "eslint *.ts*",
|
|
39
|
-
"test": "vitest run",
|
|
40
|
-
"test:coverage": "vitest run --coverage",
|
|
41
|
-
"test:ui": "vitest --ui",
|
|
42
|
-
"test:watch": "vitest watch",
|
|
43
36
|
"typecheck": "tsc --noEmit"
|
|
44
37
|
}
|
|
45
38
|
}
|