@cranberry-money/shared-constants 8.4.0 → 8.5.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 +23 -0
- package/dist/ui/cache.d.ts.map +1 -0
- package/dist/ui/cache.js +21 -0
- 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/timing.d.ts +26 -0
- package/dist/ui/timing.d.ts.map +1 -0
- package/dist/ui/timing.js +24 -0
- package/package.json +1 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cache timing constants for React Query and other caching mechanisms
|
|
3
|
+
*/
|
|
4
|
+
export declare const CACHE_TIMING: {
|
|
5
|
+
/**
|
|
6
|
+
* Auth data stale time - 5 minutes
|
|
7
|
+
*/
|
|
8
|
+
readonly AUTH_STALE_TIME: number;
|
|
9
|
+
/**
|
|
10
|
+
* Trades data stale time - 2 minutes
|
|
11
|
+
*/
|
|
12
|
+
readonly TRADES_STALE_TIME: number;
|
|
13
|
+
/**
|
|
14
|
+
* Asset allocation data stale time - 10 minutes
|
|
15
|
+
*/
|
|
16
|
+
readonly ASSET_ALLOCATION_STALE_TIME: number;
|
|
17
|
+
/**
|
|
18
|
+
* Default stale time for general data - 5 minutes
|
|
19
|
+
*/
|
|
20
|
+
readonly DEFAULT_STALE_TIME: number;
|
|
21
|
+
};
|
|
22
|
+
export type CacheTiming = typeof CACHE_TIMING;
|
|
23
|
+
//# sourceMappingURL=cache.d.ts.map
|
|
@@ -0,0 +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"}
|
package/dist/ui/cache.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cache timing constants for React Query and other caching mechanisms
|
|
3
|
+
*/
|
|
4
|
+
export const CACHE_TIMING = {
|
|
5
|
+
/**
|
|
6
|
+
* Auth data stale time - 5 minutes
|
|
7
|
+
*/
|
|
8
|
+
AUTH_STALE_TIME: 5 * 60 * 1000,
|
|
9
|
+
/**
|
|
10
|
+
* Trades data stale time - 2 minutes
|
|
11
|
+
*/
|
|
12
|
+
TRADES_STALE_TIME: 2 * 60 * 1000,
|
|
13
|
+
/**
|
|
14
|
+
* Asset allocation data stale time - 10 minutes
|
|
15
|
+
*/
|
|
16
|
+
ASSET_ALLOCATION_STALE_TIME: 10 * 60 * 1000,
|
|
17
|
+
/**
|
|
18
|
+
* Default stale time for general data - 5 minutes
|
|
19
|
+
*/
|
|
20
|
+
DEFAULT_STALE_TIME: 5 * 60 * 1000,
|
|
21
|
+
};
|
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"}
|
|
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"}
|
package/dist/ui/index.js
CHANGED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UI timing constants for animations, transitions, and delays
|
|
3
|
+
*/
|
|
4
|
+
export declare const UI_TIMING: {
|
|
5
|
+
/**
|
|
6
|
+
* Tooltip delay in milliseconds
|
|
7
|
+
*/
|
|
8
|
+
readonly TOOLTIP_DELAY: 300;
|
|
9
|
+
/**
|
|
10
|
+
* Animation durations
|
|
11
|
+
*/
|
|
12
|
+
readonly ANIMATION_FAST: 150;
|
|
13
|
+
readonly ANIMATION_NORMAL: 200;
|
|
14
|
+
readonly ANIMATION_SLOW: 300;
|
|
15
|
+
/**
|
|
16
|
+
* Transition durations
|
|
17
|
+
*/
|
|
18
|
+
readonly TRANSITION_FAST: 150;
|
|
19
|
+
readonly TRANSITION_NORMAL: 200;
|
|
20
|
+
/**
|
|
21
|
+
* Debounce delay for user input
|
|
22
|
+
*/
|
|
23
|
+
readonly DEBOUNCE_DELAY: 300;
|
|
24
|
+
};
|
|
25
|
+
export type UITiming = typeof UI_TIMING;
|
|
26
|
+
//# sourceMappingURL=timing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timing.d.ts","sourceRoot":"","sources":["../../src/ui/timing.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAO,MAAM,SAAS;IACpB;;OAEG;;IAGH;;OAEG;;;;IAKH;;OAEG;;;IAIH;;OAEG;;CAEK,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,OAAO,SAAS,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UI timing constants for animations, transitions, and delays
|
|
3
|
+
*/
|
|
4
|
+
export const UI_TIMING = {
|
|
5
|
+
/**
|
|
6
|
+
* Tooltip delay in milliseconds
|
|
7
|
+
*/
|
|
8
|
+
TOOLTIP_DELAY: 300,
|
|
9
|
+
/**
|
|
10
|
+
* Animation durations
|
|
11
|
+
*/
|
|
12
|
+
ANIMATION_FAST: 150,
|
|
13
|
+
ANIMATION_NORMAL: 200,
|
|
14
|
+
ANIMATION_SLOW: 300,
|
|
15
|
+
/**
|
|
16
|
+
* Transition durations
|
|
17
|
+
*/
|
|
18
|
+
TRANSITION_FAST: 150,
|
|
19
|
+
TRANSITION_NORMAL: 200,
|
|
20
|
+
/**
|
|
21
|
+
* Debounce delay for user input
|
|
22
|
+
*/
|
|
23
|
+
DEBOUNCE_DELAY: 300,
|
|
24
|
+
};
|