@gtkx/css 0.4.1 → 0.4.3
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/cache.d.ts +3 -0
- package/dist/cache.js +3 -2
- package/package.json +2 -2
package/dist/cache.d.ts
CHANGED
|
@@ -2,5 +2,8 @@ import type { EmotionCache } from "@emotion/cache";
|
|
|
2
2
|
/**
|
|
3
3
|
* Creates and returns a singleton Emotion cache configured for GTK.
|
|
4
4
|
* Uses StyleSheet to inject styles into GTK's CssProvider.
|
|
5
|
+
*
|
|
6
|
+
* Implementation note: Emotion's internal sheet type is not publicly exported,
|
|
7
|
+
* so we cast our StyleSheet which implements the required interface.
|
|
5
8
|
*/
|
|
6
9
|
export declare const getGtkCache: () => EmotionCache;
|
package/dist/cache.js
CHANGED
|
@@ -4,6 +4,9 @@ let gtkCache = null;
|
|
|
4
4
|
/**
|
|
5
5
|
* Creates and returns a singleton Emotion cache configured for GTK.
|
|
6
6
|
* Uses StyleSheet to inject styles into GTK's CssProvider.
|
|
7
|
+
*
|
|
8
|
+
* Implementation note: Emotion's internal sheet type is not publicly exported,
|
|
9
|
+
* so we cast our StyleSheet which implements the required interface.
|
|
7
10
|
*/
|
|
8
11
|
export const getGtkCache = () => {
|
|
9
12
|
if (!gtkCache) {
|
|
@@ -12,8 +15,6 @@ export const getGtkCache = () => {
|
|
|
12
15
|
key: "gtkx",
|
|
13
16
|
container: null,
|
|
14
17
|
});
|
|
15
|
-
// Emotion's internal sheet type is not publicly exported, but our StyleSheet
|
|
16
|
-
// implements the required interface (key, insert, flush, hydrate).
|
|
17
18
|
gtkCache.sheet = sheet;
|
|
18
19
|
}
|
|
19
20
|
return gtkCache;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gtkx/css",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"description": "Emotion-style CSS-in-JS for GTKX applications",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"gtk",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@emotion/cache": "11.14.0",
|
|
37
37
|
"@emotion/serialize": "1.3.3",
|
|
38
|
-
"@gtkx/ffi": "0.4.
|
|
38
|
+
"@gtkx/ffi": "0.4.3"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
41
|
"build": "tsc -b && cp ../../README.md .",
|