@gtkx/css 0.1.18 → 0.1.19
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.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import createCache from "@emotion/cache";
|
|
2
|
-
import {
|
|
2
|
+
import { StyleSheet } from "./style-sheet.js";
|
|
3
3
|
let gtkCache = null;
|
|
4
4
|
export const getGtkCache = () => {
|
|
5
5
|
if (!gtkCache) {
|
|
6
|
-
const sheet = new
|
|
6
|
+
const sheet = new StyleSheet({ key: "gtkx" });
|
|
7
7
|
gtkCache = createCache({
|
|
8
8
|
key: "gtkx",
|
|
9
9
|
container: null,
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -12,7 +12,7 @@ const flushPendingStyles = () => {
|
|
|
12
12
|
pendingSheets.length = 0;
|
|
13
13
|
};
|
|
14
14
|
events.once("start", flushPendingStyles);
|
|
15
|
-
export class
|
|
15
|
+
export class StyleSheet {
|
|
16
16
|
key;
|
|
17
17
|
rules = [];
|
|
18
18
|
provider = null;
|
|
@@ -66,6 +66,5 @@ export class GtkStyleSheet {
|
|
|
66
66
|
this.display = null;
|
|
67
67
|
this.hasPendingRules = false;
|
|
68
68
|
}
|
|
69
|
-
hydrate(_elements) {
|
|
70
|
-
}
|
|
69
|
+
hydrate(_elements) { }
|
|
71
70
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gtkx/css",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.19",
|
|
4
4
|
"description": "Emotion-style CSS-in-JS for GTKX applications",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"gtk",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@emotion/cache": "11.14.0",
|
|
38
38
|
"@emotion/serialize": "1.3.3",
|
|
39
|
-
"@gtkx/ffi": "0.1.
|
|
39
|
+
"@gtkx/ffi": "0.1.19"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"build": "tsc -b"
|