@multiplatform.one/components 7.34.0 → 7.34.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": "@multiplatform.one/components",
3
- "version": "7.34.0",
3
+ "version": "7.34.1",
4
4
  "description": "multiplatform.one ui components",
5
5
  "keywords": [
6
6
  "components",
@@ -57,11 +57,11 @@
57
57
  },
58
58
  "dependencies": {
59
59
  "@floating-ui/react": "^0.27.19",
60
- "@multiplatform.one/forms": "7.34.0",
61
- "@multiplatform.one/i18n": "7.34.0",
62
- "@multiplatform.one/platform": "7.34.0",
63
- "@multiplatform.one/router": "7.34.0",
64
- "@multiplatform.one/theme": "7.34.0",
60
+ "@multiplatform.one/forms": "7.34.1",
61
+ "@multiplatform.one/i18n": "7.34.1",
62
+ "@multiplatform.one/platform": "7.34.1",
63
+ "@multiplatform.one/router": "7.34.1",
64
+ "@multiplatform.one/theme": "7.34.1",
65
65
  "@phosphor-icons/react": "^2.1.10",
66
66
  "@shopify/flash-list": "^2.3.1",
67
67
  "@tamagui/colors": "2.7.6",
@@ -87,9 +87,9 @@
87
87
  "tamagui": "2.7.6"
88
88
  },
89
89
  "devDependencies": {
90
- "@multiplatform.one/config": "7.34.0",
91
- "@multiplatform.one/storybook": "7.34.0",
92
- "@multiplatform.one/test-utils": "7.34.0",
90
+ "@multiplatform.one/config": "7.34.1",
91
+ "@multiplatform.one/storybook": "7.34.1",
92
+ "@multiplatform.one/test-utils": "7.34.1",
93
93
  "@tamagui/build": "2.7.6",
94
94
  "@testing-library/jest-dom": "^6.9.1",
95
95
  "@testing-library/react": "^16.3.2",
@@ -1,6 +1,6 @@
1
1
  import { fireEvent, screen, act, cleanup } from "@testing-library/react";
2
2
  import type { ReactElement, ReactNode } from "react";
3
- import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
3
+ import { afterAll, afterEach, beforeEach, describe, expect, it, vi } from "vitest";
4
4
  import { renderWithProviders } from "@multiplatform.one/test-utils";
5
5
  import { Button, SizableText, TamaguiProvider, useTheme, YStack } from "tamagui";
6
6
  import {
@@ -38,6 +38,10 @@ afterEach(() => {
38
38
  });
39
39
  });
40
40
 
41
+ // @tamagui/toast's hide() clears the toast on a bare 100 ms setTimeout. A close
42
+ // in this file's last tests would fire it after happy-dom drops `window`.
43
+ afterAll(() => new Promise((resolve) => setTimeout(resolve, 150)));
44
+
41
45
  function Trigger(props: Parameters<ReturnType<typeof useToast>["show"]>[0]) {
42
46
  const toast = useToast();
43
47
  return <Button onPress={() => toast.show(props)}>fire</Button>;