@upstart.gg/style-system 0.0.24 → 0.0.26
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/CHANGELOG.md +15 -0
- package/dist/twind-ssr.d.ts +1 -1
- package/dist/twind-ssr.js +1 -1
- package/dist/twind.js +9 -7
- package/package.json +1 -1
- package/src/twind-ssr.ts +1 -1
- package/src/twind.ts +9 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @upstart.gg/style-system
|
|
2
2
|
|
|
3
|
+
## 0.0.26
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#225](https://github.com/enpage/enpage/pull/225) [`3eabb54`](https://github.com/enpage/enpage/commit/3eabb545a876dc3a8b3ef927a6f5b9cee70424c4) Thanks [@mattallty](https://github.com/mattallty)! - - Improve bricks lazy loading
|
|
8
|
+
- First analytics functions
|
|
9
|
+
- First draft of datarecords types
|
|
10
|
+
- Fix twind ssr to work on CF workers
|
|
11
|
+
|
|
12
|
+
## 0.0.25
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [`794cee0`](https://github.com/enpage/enpage/commit/794cee00c0f29dceb9bdd47e7eac2581625b1cd2) Thanks [@mattallty](https://github.com/mattallty)! - New GenericPageContext
|
|
17
|
+
|
|
3
18
|
## 0.0.24
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/dist/twind-ssr.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as TwindStream } from "@twind/with-react/
|
|
1
|
+
export { default as TwindStream } from "@twind/with-react/readableStream";
|
package/dist/twind-ssr.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as TwindStream } from "@twind/with-react/
|
|
1
|
+
export { default as TwindStream } from "@twind/with-react/readableStream";
|
package/dist/twind.js
CHANGED
|
@@ -23,13 +23,15 @@ export const tw = /* #__PURE__ */ twind(config,
|
|
|
23
23
|
sheet);
|
|
24
24
|
export function setupTwindReact(prod = isProd()) {
|
|
25
25
|
install(config, prod);
|
|
26
|
-
addEventListener
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
26
|
+
if (typeof globalThis.addEventListener === "function") {
|
|
27
|
+
globalThis.addEventListener("warning", (event) => {
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
const warning = event.detail;
|
|
30
|
+
if (warning?.code === "TWIND_INVALID_CLASS") {
|
|
31
|
+
event.preventDefault();
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
}
|
|
33
35
|
}
|
|
34
36
|
export const tx = /* #__PURE__ */ tx$.bind(tw);
|
|
35
37
|
export const css = /* #__PURE__ */ css$.bind(tw);
|
package/package.json
CHANGED
package/src/twind-ssr.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as TwindStream } from "@twind/with-react/
|
|
1
|
+
export { default as TwindStream } from "@twind/with-react/readableStream";
|
package/src/twind.ts
CHANGED
|
@@ -45,14 +45,15 @@ export const tw = /* #__PURE__ */ twind(
|
|
|
45
45
|
|
|
46
46
|
export function setupTwindReact(prod = isProd()) {
|
|
47
47
|
install(config, prod);
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
48
|
+
if (typeof globalThis.addEventListener === "function") {
|
|
49
|
+
globalThis.addEventListener("warning", (event) => {
|
|
50
|
+
// @ts-ignore
|
|
51
|
+
const warning = event.detail;
|
|
52
|
+
if (warning?.code === "TWIND_INVALID_CLASS") {
|
|
53
|
+
event.preventDefault();
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
}
|
|
56
57
|
}
|
|
57
58
|
|
|
58
59
|
export const tx = /* #__PURE__ */ tx$.bind(tw);
|