@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.
@@ -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"}
@@ -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
+ };
@@ -5,4 +5,6 @@ export * from './colors';
5
5
  export * from './display';
6
6
  export * from './labels';
7
7
  export * from './status-colors-unified';
8
+ export * from './timing';
9
+ export * from './cache';
8
10
  //# sourceMappingURL=index.d.ts.map
@@ -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
@@ -5,3 +5,5 @@ export * from './colors';
5
5
  export * from './display';
6
6
  export * from './labels';
7
7
  export * from './status-colors-unified';
8
+ export * from './timing';
9
+ export * from './cache';
@@ -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
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cranberry-money/shared-constants",
3
- "version": "8.4.0",
3
+ "version": "8.5.0",
4
4
  "description": "Shared constants for MyPortfolio platform",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",