@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 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
@@ -1 +1 @@
1
- export { default as TwindStream } from "@twind/with-react/pipeableStream";
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/pipeableStream";
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("warning", (event) => {
27
- // @ts-ignore
28
- const warning = event.detail;
29
- if (warning.code === "TWIND_INVALID_CLASS") {
30
- event.preventDefault();
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@upstart.gg/style-system",
3
- "version": "0.0.24",
3
+ "version": "0.0.26",
4
4
  "description": "Base tailwindcss setup with some extra plugins as well as colors and editor styles",
5
5
  "type": "module",
6
6
  "exports": {
package/src/twind-ssr.ts CHANGED
@@ -1 +1 @@
1
- export { default as TwindStream } from "@twind/with-react/pipeableStream";
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
- addEventListener("warning", (event) => {
50
- // @ts-ignore
51
- const warning = event.detail;
52
- if (warning.code === "TWIND_INVALID_CLASS") {
53
- event.preventDefault();
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);