@tamagui/toast 1.75.4 → 1.75.6
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.
|
@@ -28,7 +28,7 @@ __export(ToastImperative_exports, {
|
|
|
28
28
|
useToastState: () => useToastState
|
|
29
29
|
});
|
|
30
30
|
module.exports = __toCommonJS(ToastImperative_exports);
|
|
31
|
-
var import_core = require("@tamagui/core"), import_react = __toESM(require("react")), import_react_native = require("react-native"), import_createNativeToast = require("./createNativeToast"), import_jsx_runtime = require("react/jsx-runtime");
|
|
31
|
+
var import_core = require("@tamagui/core"), import_react = __toESM(require("react")), import_react_native = require("react-native-web"), import_createNativeToast = require("./createNativeToast"), import_jsx_runtime = require("react/jsx-runtime");
|
|
32
32
|
const ToastContext = (0, import_react.createContext)({}), ToastCurrentContext = (0, import_react.createContext)(null), useToastController = () => (0, import_react.useContext)(ToastContext), useToastState = () => (0, import_react.useContext)(ToastCurrentContext), useToast = () => ({
|
|
33
33
|
...useToastController(),
|
|
34
34
|
currentToast: useToastState()
|
package/dist/cjs/ToastImpl.js
CHANGED
|
@@ -27,7 +27,7 @@ __export(ToastImpl_exports, {
|
|
|
27
27
|
useToastInteractiveContext: () => useToastInteractiveContext
|
|
28
28
|
});
|
|
29
29
|
module.exports = __toCommonJS(ToastImpl_exports);
|
|
30
|
-
var import_animate_presence = require("@tamagui/animate-presence"), import_compose_refs = require("@tamagui/compose-refs"), import_core = require("@tamagui/core"), import_dismissable = require("@tamagui/dismissable"), import_portal = require("@tamagui/portal"), import_stacks = require("@tamagui/stacks"), React = __toESM(require("react")), import_react_native = require("react-native"), import_constants = require("./constants"), import_ToastAnnounce = require("./ToastAnnounce"), import_ToastProvider = require("./ToastProvider"), import_ToastViewport = require("./ToastViewport"), import_jsx_runtime = require("react/jsx-runtime");
|
|
30
|
+
var import_animate_presence = require("@tamagui/animate-presence"), import_compose_refs = require("@tamagui/compose-refs"), import_core = require("@tamagui/core"), import_dismissable = require("@tamagui/dismissable"), import_portal = require("@tamagui/portal"), import_stacks = require("@tamagui/stacks"), React = __toESM(require("react")), import_react_native = require("react-native-web"), import_constants = require("./constants"), import_ToastAnnounce = require("./ToastAnnounce"), import_ToastProvider = require("./ToastProvider"), import_ToastViewport = require("./ToastViewport"), import_jsx_runtime = require("react/jsx-runtime");
|
|
31
31
|
const ToastImplFrame = (0, import_core.styled)(import_stacks.ThemeableStack, {
|
|
32
32
|
name: "ToastImpl",
|
|
33
33
|
focusable: !0,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isWeb } from "@tamagui/core";
|
|
2
2
|
import React, { createContext, useContext, useMemo, useRef } from "react";
|
|
3
|
-
import { Platform } from "react-native";
|
|
3
|
+
import { Platform } from "react-native-web";
|
|
4
4
|
import { createNativeToast } from "./createNativeToast";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
const ToastContext = createContext({}), ToastCurrentContext = createContext(null), useToastController = () => useContext(ToastContext), useToastState = () => useContext(ToastCurrentContext), useToast = () => ({
|
package/dist/esm/ToastImpl.js
CHANGED
|
@@ -16,7 +16,7 @@ import { ThemeableStack } from "@tamagui/stacks";
|
|
|
16
16
|
import * as React from "react";
|
|
17
17
|
import {
|
|
18
18
|
PanResponder
|
|
19
|
-
} from "react-native";
|
|
19
|
+
} from "react-native-web";
|
|
20
20
|
import { TOAST_CONTEXT, TOAST_NAME } from "./constants";
|
|
21
21
|
import { ToastAnnounce } from "./ToastAnnounce";
|
|
22
22
|
import {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isWeb } from "@tamagui/core";
|
|
2
2
|
import React, { createContext, useContext, useMemo, useRef } from "react";
|
|
3
|
-
import { Platform } from "react-native";
|
|
3
|
+
import { Platform } from "react-native-web";
|
|
4
4
|
import { createNativeToast } from "./createNativeToast";
|
|
5
5
|
const ToastContext = createContext({}), ToastCurrentContext = createContext(null), useToastController = () => useContext(ToastContext), useToastState = () => useContext(ToastCurrentContext), useToast = () => ({
|
|
6
6
|
...useToastController(),
|
package/dist/jsx/ToastImpl.js
CHANGED
|
@@ -16,7 +16,7 @@ import { ThemeableStack } from "@tamagui/stacks";
|
|
|
16
16
|
import * as React from "react";
|
|
17
17
|
import {
|
|
18
18
|
PanResponder
|
|
19
|
-
} from "react-native";
|
|
19
|
+
} from "react-native-web";
|
|
20
20
|
import { TOAST_CONTEXT, TOAST_NAME } from "./constants";
|
|
21
21
|
import { ToastAnnounce } from "./ToastAnnounce";
|
|
22
22
|
import {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/toast",
|
|
3
|
-
"version": "1.75.
|
|
3
|
+
"version": "1.75.6",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"types": "./types/index.d.ts",
|
|
6
6
|
"main": "dist/cjs",
|
|
@@ -31,24 +31,24 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@tamagui/animate-presence": "1.75.
|
|
35
|
-
"@tamagui/compose-refs": "1.75.
|
|
36
|
-
"@tamagui/core": "1.75.
|
|
37
|
-
"@tamagui/create-context": "1.75.
|
|
38
|
-
"@tamagui/dismissable": "1.75.
|
|
39
|
-
"@tamagui/polyfill-dev": "1.75.
|
|
40
|
-
"@tamagui/portal": "1.75.
|
|
41
|
-
"@tamagui/stacks": "1.75.
|
|
42
|
-
"@tamagui/text": "1.75.
|
|
43
|
-
"@tamagui/use-controllable-state": "1.75.
|
|
44
|
-
"@tamagui/visually-hidden": "1.75.
|
|
34
|
+
"@tamagui/animate-presence": "1.75.6",
|
|
35
|
+
"@tamagui/compose-refs": "1.75.6",
|
|
36
|
+
"@tamagui/core": "1.75.6",
|
|
37
|
+
"@tamagui/create-context": "1.75.6",
|
|
38
|
+
"@tamagui/dismissable": "1.75.6",
|
|
39
|
+
"@tamagui/polyfill-dev": "1.75.6",
|
|
40
|
+
"@tamagui/portal": "1.75.6",
|
|
41
|
+
"@tamagui/stacks": "1.75.6",
|
|
42
|
+
"@tamagui/text": "1.75.6",
|
|
43
|
+
"@tamagui/use-controllable-state": "1.75.6",
|
|
44
|
+
"@tamagui/visually-hidden": "1.75.6"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"react": "*",
|
|
48
48
|
"react-native": "*"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@tamagui/build": "1.75.
|
|
51
|
+
"@tamagui/build": "1.75.6",
|
|
52
52
|
"burnt": "^0.11.0",
|
|
53
53
|
"react": "^18.2.0",
|
|
54
54
|
"react-native": "^0.72.1"
|