@cranberry-money/shared-constants 8.5.0 → 8.7.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/ui/cache.d.ts +28 -4
- package/dist/ui/cache.d.ts.map +1 -1
- package/dist/ui/cache.js +28 -4
- package/dist/ui/index.d.ts +2 -0
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/index.js +2 -0
- package/dist/ui/navigation.d.ts +45 -0
- package/dist/ui/navigation.d.ts.map +1 -0
- package/dist/ui/navigation.js +47 -0
- package/dist/ui/zIndex.d.ts +80 -0
- package/dist/ui/zIndex.d.ts.map +1 -0
- package/dist/ui/zIndex.js +77 -0
- package/package.json +1 -1
package/dist/ui/cache.d.ts
CHANGED
|
@@ -3,21 +3,45 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export declare const CACHE_TIMING: {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Very short cache - 30 seconds
|
|
7
7
|
*/
|
|
8
|
-
readonly
|
|
8
|
+
readonly VERY_SHORT_STALE_TIME: number;
|
|
9
9
|
/**
|
|
10
10
|
* Trades data stale time - 2 minutes
|
|
11
11
|
*/
|
|
12
12
|
readonly TRADES_STALE_TIME: number;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Auth data stale time - 5 minutes
|
|
15
15
|
*/
|
|
16
|
-
readonly
|
|
16
|
+
readonly AUTH_STALE_TIME: number;
|
|
17
17
|
/**
|
|
18
18
|
* Default stale time for general data - 5 minutes
|
|
19
19
|
*/
|
|
20
20
|
readonly DEFAULT_STALE_TIME: number;
|
|
21
|
+
/**
|
|
22
|
+
* Asset allocation data stale time - 10 minutes
|
|
23
|
+
*/
|
|
24
|
+
readonly ASSET_ALLOCATION_STALE_TIME: number;
|
|
25
|
+
/**
|
|
26
|
+
* Long cache time - 30 minutes
|
|
27
|
+
*/
|
|
28
|
+
readonly LONG_STALE_TIME: number;
|
|
29
|
+
/**
|
|
30
|
+
* Default garbage collection time - 2 minutes
|
|
31
|
+
*/
|
|
32
|
+
readonly DEFAULT_GC_TIME: number;
|
|
33
|
+
/**
|
|
34
|
+
* Medium garbage collection time - 5 minutes
|
|
35
|
+
*/
|
|
36
|
+
readonly MEDIUM_GC_TIME: number;
|
|
37
|
+
/**
|
|
38
|
+
* Long garbage collection time - 10 minutes
|
|
39
|
+
*/
|
|
40
|
+
readonly LONG_GC_TIME: number;
|
|
41
|
+
/**
|
|
42
|
+
* Very long garbage collection time - 30 minutes
|
|
43
|
+
*/
|
|
44
|
+
readonly VERY_LONG_GC_TIME: number;
|
|
21
45
|
};
|
|
22
46
|
export type CacheTiming = typeof CACHE_TIMING;
|
|
23
47
|
//# sourceMappingURL=cache.d.ts.map
|
package/dist/ui/cache.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../src/ui/cache.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAO,MAAM,YAAY;IACvB;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;CAEK,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,OAAO,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../src/ui/cache.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAO,MAAM,YAAY;IACvB;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;CAEK,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,OAAO,YAAY,CAAC"}
|
package/dist/ui/cache.js
CHANGED
|
@@ -3,19 +3,43 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const CACHE_TIMING = {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Very short cache - 30 seconds
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
VERY_SHORT_STALE_TIME: 30 * 1000,
|
|
9
9
|
/**
|
|
10
10
|
* Trades data stale time - 2 minutes
|
|
11
11
|
*/
|
|
12
12
|
TRADES_STALE_TIME: 2 * 60 * 1000,
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Auth data stale time - 5 minutes
|
|
15
15
|
*/
|
|
16
|
-
|
|
16
|
+
AUTH_STALE_TIME: 5 * 60 * 1000,
|
|
17
17
|
/**
|
|
18
18
|
* Default stale time for general data - 5 minutes
|
|
19
19
|
*/
|
|
20
20
|
DEFAULT_STALE_TIME: 5 * 60 * 1000,
|
|
21
|
+
/**
|
|
22
|
+
* Asset allocation data stale time - 10 minutes
|
|
23
|
+
*/
|
|
24
|
+
ASSET_ALLOCATION_STALE_TIME: 10 * 60 * 1000,
|
|
25
|
+
/**
|
|
26
|
+
* Long cache time - 30 minutes
|
|
27
|
+
*/
|
|
28
|
+
LONG_STALE_TIME: 30 * 60 * 1000,
|
|
29
|
+
/**
|
|
30
|
+
* Default garbage collection time - 2 minutes
|
|
31
|
+
*/
|
|
32
|
+
DEFAULT_GC_TIME: 2 * 60 * 1000,
|
|
33
|
+
/**
|
|
34
|
+
* Medium garbage collection time - 5 minutes
|
|
35
|
+
*/
|
|
36
|
+
MEDIUM_GC_TIME: 5 * 60 * 1000,
|
|
37
|
+
/**
|
|
38
|
+
* Long garbage collection time - 10 minutes
|
|
39
|
+
*/
|
|
40
|
+
LONG_GC_TIME: 10 * 60 * 1000,
|
|
41
|
+
/**
|
|
42
|
+
* Very long garbage collection time - 30 minutes
|
|
43
|
+
*/
|
|
44
|
+
VERY_LONG_GC_TIME: 30 * 60 * 1000,
|
|
21
45
|
};
|
package/dist/ui/index.d.ts
CHANGED
package/dist/ui/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ui/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,yBAAyB,CAAC;AACxC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ui/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,yBAAyB,CAAC;AACxC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC"}
|
package/dist/ui/index.js
CHANGED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Navigation constants for consistent routing and labeling across applications
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Application routes
|
|
6
|
+
*/
|
|
7
|
+
export declare const NAVIGATION_ROUTES: {
|
|
8
|
+
readonly HOME: "/";
|
|
9
|
+
readonly ABOUT: "/about";
|
|
10
|
+
readonly CONTACT: "/contact";
|
|
11
|
+
readonly SIGN_IN: "/signin";
|
|
12
|
+
readonly DASHBOARD: "/dashboard";
|
|
13
|
+
readonly ASSET_ALLOCATION: "/asset-allocation";
|
|
14
|
+
readonly CASH_TRANSACTIONS: "/cash-transactions";
|
|
15
|
+
readonly TARGET_TRADES: "/target-trades";
|
|
16
|
+
readonly TRADES: "/trades";
|
|
17
|
+
readonly SIGNUP_USER: "/signup/user";
|
|
18
|
+
readonly SIGNUP_EMAIL_CONFIRMATION: "/signup/email_confirmation";
|
|
19
|
+
readonly SIGNUP_USER_PROFILE: "/signup/user_profile";
|
|
20
|
+
readonly SIGNUP_TAX_RESIDENCIES: "/signup/tax_residencies";
|
|
21
|
+
readonly SIGNUP_INVESTMENT_PREFERENCES: "/signup/investment_preferences";
|
|
22
|
+
readonly SIGNUP_PORTFOLIO_SELECTION: "/signup/portfolio_selection";
|
|
23
|
+
readonly SIGNUP_PORTFOLIO_PERFORMANCE: "/signup/portfolio_performance";
|
|
24
|
+
readonly SIGNUP_REVIEW: "/signup/review";
|
|
25
|
+
readonly SIGNUP_ASSET_ALLOCATION: "/signup/asset_allocation";
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Navigation menu labels
|
|
29
|
+
*/
|
|
30
|
+
export declare const NAVIGATION_LABELS: {
|
|
31
|
+
readonly HOME: "Home";
|
|
32
|
+
readonly ABOUT: "About";
|
|
33
|
+
readonly CONTACT: "Contact";
|
|
34
|
+
readonly SIGN_IN: "Sign In";
|
|
35
|
+
readonly DASHBOARD: "Dashboard";
|
|
36
|
+
readonly ALLOCATION: "Allocation";
|
|
37
|
+
readonly CASH: "Cash";
|
|
38
|
+
readonly ORDERS: "Orders";
|
|
39
|
+
readonly TRADES: "Trades";
|
|
40
|
+
readonly SIGN_OUT: "Sign Out";
|
|
41
|
+
readonly SIGNING_OUT: "Signing Out...";
|
|
42
|
+
};
|
|
43
|
+
export type NavigationRoutes = typeof NAVIGATION_ROUTES;
|
|
44
|
+
export type NavigationLabels = typeof NAVIGATION_LABELS;
|
|
45
|
+
//# sourceMappingURL=navigation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../src/ui/navigation.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;CAwBpB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;CAepB,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,OAAO,iBAAiB,CAAC;AACxD,MAAM,MAAM,gBAAgB,GAAG,OAAO,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Navigation constants for consistent routing and labeling across applications
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Application routes
|
|
6
|
+
*/
|
|
7
|
+
export const NAVIGATION_ROUTES = {
|
|
8
|
+
// Public routes
|
|
9
|
+
HOME: '/',
|
|
10
|
+
ABOUT: '/about',
|
|
11
|
+
CONTACT: '/contact',
|
|
12
|
+
SIGN_IN: '/signin',
|
|
13
|
+
// Authenticated routes
|
|
14
|
+
DASHBOARD: '/dashboard',
|
|
15
|
+
ASSET_ALLOCATION: '/asset-allocation',
|
|
16
|
+
CASH_TRANSACTIONS: '/cash-transactions',
|
|
17
|
+
TARGET_TRADES: '/target-trades',
|
|
18
|
+
TRADES: '/trades',
|
|
19
|
+
// Signup flow routes
|
|
20
|
+
SIGNUP_USER: '/signup/user',
|
|
21
|
+
SIGNUP_EMAIL_CONFIRMATION: '/signup/email_confirmation',
|
|
22
|
+
SIGNUP_USER_PROFILE: '/signup/user_profile',
|
|
23
|
+
SIGNUP_TAX_RESIDENCIES: '/signup/tax_residencies',
|
|
24
|
+
SIGNUP_INVESTMENT_PREFERENCES: '/signup/investment_preferences',
|
|
25
|
+
SIGNUP_PORTFOLIO_SELECTION: '/signup/portfolio_selection',
|
|
26
|
+
SIGNUP_PORTFOLIO_PERFORMANCE: '/signup/portfolio_performance',
|
|
27
|
+
SIGNUP_REVIEW: '/signup/review',
|
|
28
|
+
SIGNUP_ASSET_ALLOCATION: '/signup/asset_allocation',
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Navigation menu labels
|
|
32
|
+
*/
|
|
33
|
+
export const NAVIGATION_LABELS = {
|
|
34
|
+
// Public menu items
|
|
35
|
+
HOME: 'Home',
|
|
36
|
+
ABOUT: 'About',
|
|
37
|
+
CONTACT: 'Contact',
|
|
38
|
+
SIGN_IN: 'Sign In',
|
|
39
|
+
// Authenticated menu items
|
|
40
|
+
DASHBOARD: 'Dashboard',
|
|
41
|
+
ALLOCATION: 'Allocation',
|
|
42
|
+
CASH: 'Cash',
|
|
43
|
+
ORDERS: 'Orders',
|
|
44
|
+
TRADES: 'Trades',
|
|
45
|
+
SIGN_OUT: 'Sign Out',
|
|
46
|
+
SIGNING_OUT: 'Signing Out...',
|
|
47
|
+
};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Z-index system for consistent layering across the application
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Base z-index values for different UI layers
|
|
6
|
+
*/
|
|
7
|
+
export declare const Z_INDEX: {
|
|
8
|
+
/**
|
|
9
|
+
* Base level - normal document flow
|
|
10
|
+
*/
|
|
11
|
+
readonly BASE: 0;
|
|
12
|
+
/**
|
|
13
|
+
* Dropdowns, select menus
|
|
14
|
+
*/
|
|
15
|
+
readonly DROPDOWN: 10;
|
|
16
|
+
/**
|
|
17
|
+
* Sticky headers, toolbars
|
|
18
|
+
*/
|
|
19
|
+
readonly STICKY: 20;
|
|
20
|
+
/**
|
|
21
|
+
* Fixed elements like floating buttons
|
|
22
|
+
*/
|
|
23
|
+
readonly FIXED: 30;
|
|
24
|
+
/**
|
|
25
|
+
* Modal backdrops/overlays
|
|
26
|
+
*/
|
|
27
|
+
readonly MODAL_BACKDROP: 40;
|
|
28
|
+
/**
|
|
29
|
+
* Modal content
|
|
30
|
+
*/
|
|
31
|
+
readonly MODAL: 50;
|
|
32
|
+
/**
|
|
33
|
+
* Popovers, floating UI elements
|
|
34
|
+
*/
|
|
35
|
+
readonly POPOVER: 60;
|
|
36
|
+
/**
|
|
37
|
+
* Tooltips - should appear above most content
|
|
38
|
+
*/
|
|
39
|
+
readonly TOOLTIP: 70;
|
|
40
|
+
/**
|
|
41
|
+
* Notifications, toasts
|
|
42
|
+
*/
|
|
43
|
+
readonly NOTIFICATION: 80;
|
|
44
|
+
/**
|
|
45
|
+
* Maximum z-index for critical overlays
|
|
46
|
+
*/
|
|
47
|
+
readonly MAX: 9999;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Semantic z-index aliases for specific components
|
|
51
|
+
*/
|
|
52
|
+
export declare const Z_INDEX_SEMANTIC: {
|
|
53
|
+
/**
|
|
54
|
+
* Table sticky headers
|
|
55
|
+
*/
|
|
56
|
+
readonly TABLE_HEADER: 10;
|
|
57
|
+
/**
|
|
58
|
+
* Navigation overlay/mobile menu
|
|
59
|
+
*/
|
|
60
|
+
readonly NAVIGATION_OVERLAY: 50;
|
|
61
|
+
/**
|
|
62
|
+
* Dialog components
|
|
63
|
+
*/
|
|
64
|
+
readonly DIALOG: 50;
|
|
65
|
+
/**
|
|
66
|
+
* Menu trigger buttons
|
|
67
|
+
*/
|
|
68
|
+
readonly MENU_BUTTON: 20;
|
|
69
|
+
/**
|
|
70
|
+
* Menu panels/dropdowns
|
|
71
|
+
*/
|
|
72
|
+
readonly MENU_PANEL: 30;
|
|
73
|
+
/**
|
|
74
|
+
* General backdrop/overlay
|
|
75
|
+
*/
|
|
76
|
+
readonly BACKDROP: 10;
|
|
77
|
+
};
|
|
78
|
+
export type ZIndex = typeof Z_INDEX;
|
|
79
|
+
export type ZIndexSemantic = typeof Z_INDEX_SEMANTIC;
|
|
80
|
+
//# sourceMappingURL=zIndex.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zIndex.d.ts","sourceRoot":"","sources":["../../src/ui/zIndex.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,eAAO,MAAM,OAAO;IAClB;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;CAEK,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,gBAAgB;IAC3B;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;CAEK,CAAC;AAEX,MAAM,MAAM,MAAM,GAAG,OAAO,OAAO,CAAC;AACpC,MAAM,MAAM,cAAc,GAAG,OAAO,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Z-index system for consistent layering across the application
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Base z-index values for different UI layers
|
|
6
|
+
*/
|
|
7
|
+
export const Z_INDEX = {
|
|
8
|
+
/**
|
|
9
|
+
* Base level - normal document flow
|
|
10
|
+
*/
|
|
11
|
+
BASE: 0,
|
|
12
|
+
/**
|
|
13
|
+
* Dropdowns, select menus
|
|
14
|
+
*/
|
|
15
|
+
DROPDOWN: 10,
|
|
16
|
+
/**
|
|
17
|
+
* Sticky headers, toolbars
|
|
18
|
+
*/
|
|
19
|
+
STICKY: 20,
|
|
20
|
+
/**
|
|
21
|
+
* Fixed elements like floating buttons
|
|
22
|
+
*/
|
|
23
|
+
FIXED: 30,
|
|
24
|
+
/**
|
|
25
|
+
* Modal backdrops/overlays
|
|
26
|
+
*/
|
|
27
|
+
MODAL_BACKDROP: 40,
|
|
28
|
+
/**
|
|
29
|
+
* Modal content
|
|
30
|
+
*/
|
|
31
|
+
MODAL: 50,
|
|
32
|
+
/**
|
|
33
|
+
* Popovers, floating UI elements
|
|
34
|
+
*/
|
|
35
|
+
POPOVER: 60,
|
|
36
|
+
/**
|
|
37
|
+
* Tooltips - should appear above most content
|
|
38
|
+
*/
|
|
39
|
+
TOOLTIP: 70,
|
|
40
|
+
/**
|
|
41
|
+
* Notifications, toasts
|
|
42
|
+
*/
|
|
43
|
+
NOTIFICATION: 80,
|
|
44
|
+
/**
|
|
45
|
+
* Maximum z-index for critical overlays
|
|
46
|
+
*/
|
|
47
|
+
MAX: 9999,
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Semantic z-index aliases for specific components
|
|
51
|
+
*/
|
|
52
|
+
export const Z_INDEX_SEMANTIC = {
|
|
53
|
+
/**
|
|
54
|
+
* Table sticky headers
|
|
55
|
+
*/
|
|
56
|
+
TABLE_HEADER: Z_INDEX.DROPDOWN,
|
|
57
|
+
/**
|
|
58
|
+
* Navigation overlay/mobile menu
|
|
59
|
+
*/
|
|
60
|
+
NAVIGATION_OVERLAY: Z_INDEX.MODAL,
|
|
61
|
+
/**
|
|
62
|
+
* Dialog components
|
|
63
|
+
*/
|
|
64
|
+
DIALOG: Z_INDEX.MODAL,
|
|
65
|
+
/**
|
|
66
|
+
* Menu trigger buttons
|
|
67
|
+
*/
|
|
68
|
+
MENU_BUTTON: Z_INDEX.STICKY,
|
|
69
|
+
/**
|
|
70
|
+
* Menu panels/dropdowns
|
|
71
|
+
*/
|
|
72
|
+
MENU_PANEL: Z_INDEX.FIXED,
|
|
73
|
+
/**
|
|
74
|
+
* General backdrop/overlay
|
|
75
|
+
*/
|
|
76
|
+
BACKDROP: Z_INDEX.DROPDOWN,
|
|
77
|
+
};
|