@codeleap/styles 5.8.20 → 6.0.1
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codeleap/styles",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.1",
|
|
4
4
|
"main": "src/index.ts",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"repository": {
|
|
@@ -9,15 +9,15 @@
|
|
|
9
9
|
"directory": "packages/styles"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"@codeleap/config": "
|
|
12
|
+
"@codeleap/config": "6.0.1",
|
|
13
13
|
"ts-node-dev": "^1.1.8"
|
|
14
14
|
},
|
|
15
15
|
"scripts": {
|
|
16
16
|
"build": "echo 'No build needed'"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"react": "
|
|
20
|
-
"typescript": "5.
|
|
19
|
+
"react": "19.1.0",
|
|
20
|
+
"typescript": "5.5.2"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@fastify/deepmerge": "3.1.0",
|
package/package.json.bak
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codeleap/styles",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.1",
|
|
4
4
|
"main": "src/index.ts",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"repository": {
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"build": "echo 'No build needed'"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"react": "
|
|
20
|
-
"typescript": "5.
|
|
19
|
+
"react": "19.1.0",
|
|
20
|
+
"typescript": "5.5.2"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@fastify/deepmerge": "3.1.0",
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
private wiperId: Timer | null = null
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* @UNUSED_IMPLEMENTATION - Constructor available for future use
|
|
13
12
|
* @param staleTime - Expiration time in minutes (default: 60 minutes)
|
|
14
13
|
* @param staleTimeIdentifier - Separator to identify timestamp in value (default: '//:')
|
|
15
14
|
* @param wiperInterval - Expired data check interval in milliseconds (default: 30 minutes)
|
|
@@ -21,7 +20,6 @@
|
|
|
21
20
|
) {}
|
|
22
21
|
|
|
23
22
|
/**
|
|
24
|
-
* @UNUSED_IMPLEMENTATION - Method available for future use
|
|
25
23
|
* Checks if a value is expired based on embedded timestamp
|
|
26
24
|
* @param value - Value with embedded timestamp
|
|
27
25
|
* @returns boolean indicating if value is expired
|
|
@@ -37,7 +35,6 @@
|
|
|
37
35
|
}
|
|
38
36
|
|
|
39
37
|
/**
|
|
40
|
-
* @UNUSED_IMPLEMENTATION - Method available for future use
|
|
41
38
|
* Inserts expiration timestamp into a value
|
|
42
39
|
* @param value - Original value without timestamp
|
|
43
40
|
* @returns Value with expiration timestamp embedded
|
|
@@ -53,7 +50,6 @@
|
|
|
53
50
|
}
|
|
54
51
|
|
|
55
52
|
/**
|
|
56
|
-
* @UNUSED_IMPLEMENTATION - Method available for future use
|
|
57
53
|
* Refreshes the expiration timestamp of a value
|
|
58
54
|
* @param value - Value with existing timestamp
|
|
59
55
|
* @returns Value with refreshed expiration timestamp
|
|
@@ -66,7 +62,6 @@
|
|
|
66
62
|
}
|
|
67
63
|
|
|
68
64
|
/**
|
|
69
|
-
* @UNUSED_IMPLEMENTATION - Method available for future use
|
|
70
65
|
* Extracts expiration timestamp and original value
|
|
71
66
|
* @param value - Value with embedded timestamp
|
|
72
67
|
* @returns Object containing expiration date and original value
|
|
@@ -82,7 +77,6 @@
|
|
|
82
77
|
}
|
|
83
78
|
|
|
84
79
|
/**
|
|
85
|
-
* @UNUSED_IMPLEMENTATION - Method available for future use
|
|
86
80
|
* Wipes expired cache; verifies isStaled values and removes them
|
|
87
81
|
* @throws Error indicating method is not implemented
|
|
88
82
|
*/
|
|
@@ -91,7 +85,6 @@
|
|
|
91
85
|
}
|
|
92
86
|
|
|
93
87
|
/**
|
|
94
|
-
* @UNUSED_IMPLEMENTATION - Method available for future use
|
|
95
88
|
* Registers periodic cache cleaning interval
|
|
96
89
|
*/
|
|
97
90
|
registerCacheWiper(): void {
|
|
@@ -105,7 +98,6 @@
|
|
|
105
98
|
}
|
|
106
99
|
|
|
107
100
|
/**
|
|
108
|
-
* @UNUSED_IMPLEMENTATION - Method available for future use
|
|
109
101
|
* Unregisters periodic cache cleaning interval
|
|
110
102
|
*/
|
|
111
103
|
unregisterCacheWiper(): void {
|
|
@@ -116,7 +108,6 @@
|
|
|
116
108
|
}
|
|
117
109
|
|
|
118
110
|
/**
|
|
119
|
-
* @UNUSED_IMPLEMENTATION - Method available for future use
|
|
120
111
|
* Cleanup method to clear intervals when instance is no longer needed
|
|
121
112
|
*/
|
|
122
113
|
destroy(): void {
|
package/src/types/component.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AnyRecord, IJSX } from './core'
|
|
2
2
|
import { StyleProp, VariantStyleSheet } from './style'
|
|
3
|
+
import React, { JSX } from 'react'
|
|
3
4
|
|
|
4
5
|
export type PropsWithVariants<Props extends AnyRecord, VariantStyles extends AnyRecord> = Omit<Props, 'style'> & {
|
|
5
6
|
style?: StyleProp<
|