@elliemae/ds-toast 3.12.0-next.0 → 3.12.0-next.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/dist/cjs/toast.js +9 -12
- package/dist/cjs/toast.js.map +2 -2
- package/dist/esm/toast.js +9 -12
- package/dist/esm/toast.js.map +2 -2
- package/package.json +6 -6
package/dist/cjs/toast.js
CHANGED
|
@@ -32,18 +32,15 @@ var import_jsx_runtime = require("react/jsx-runtime");
|
|
|
32
32
|
var import_react_toastify = require("react-toastify");
|
|
33
33
|
var import_ToastRender = __toESM(require("./ToastRender"));
|
|
34
34
|
const toast = Object.assign(
|
|
35
|
-
({ type, messageTitle, messageText, ...rest }, options) => (0, import_react_toastify.toast)(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
type
|
|
45
|
-
}
|
|
46
|
-
),
|
|
35
|
+
({ type, messageTitle, messageText, ...rest }, options) => (0, import_react_toastify.toast)(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ToastRender.default, {
|
|
36
|
+
messageText,
|
|
37
|
+
messageTitle,
|
|
38
|
+
type
|
|
39
|
+
}), {
|
|
40
|
+
...rest,
|
|
41
|
+
...options,
|
|
42
|
+
type
|
|
43
|
+
}),
|
|
47
44
|
{ ...import_react_toastify.toast, isActive: (id) => import_react_toastify.toast.isActive(id) }
|
|
48
45
|
);
|
|
49
46
|
//# sourceMappingURL=toast.js.map
|
package/dist/cjs/toast.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/toast.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport { toast as toastifyToast } from 'react-toastify';\nimport ToastRender from './ToastRender';\n\nconst toast = Object.assign(\n ({ type, messageTitle, messageText, ...rest }, options) =>\n toastifyToast(
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport { toast as toastifyToast } from 'react-toastify';\nimport ToastRender from './ToastRender';\n\nconst toast = Object.assign(\n ({ type, messageTitle, messageText, ...rest }, options) =>\n toastifyToast(<ToastRender messageText={messageText} messageTitle={messageTitle} type={type} />, {\n ...rest,\n ...options,\n type,\n }),\n { ...toastifyToast, isActive: (id) => toastifyToast.isActive(id) },\n);\nexport { toast };\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADML;AALlB,4BAAuC;AACvC,yBAAwB;AAExB,MAAM,QAAQ,OAAO;AAAA,EACnB,CAAC,EAAE,MAAM,cAAc,gBAAgB,KAAK,GAAG,gBAC7C,sBAAAA,OAAc,4CAAC,mBAAAC,SAAA;AAAA,IAAY;AAAA,IAA0B;AAAA,IAA4B;AAAA,GAAY,GAAI;AAAA,IAC/F,GAAG;AAAA,IACH,GAAG;AAAA,IACH;AAAA,EACF,CAAC;AAAA,EACH,EAAE,GAAG,sBAAAD,OAAe,UAAU,CAAC,OAAO,sBAAAA,MAAc,SAAS,EAAE,EAAE;AACnE;",
|
|
6
6
|
"names": ["toastifyToast", "ToastRender"]
|
|
7
7
|
}
|
package/dist/esm/toast.js
CHANGED
|
@@ -3,18 +3,15 @@ import { jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import { toast as toastifyToast } from "react-toastify";
|
|
4
4
|
import ToastRender from "./ToastRender";
|
|
5
5
|
const toast = Object.assign(
|
|
6
|
-
({ type, messageTitle, messageText, ...rest }, options) => toastifyToast(
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
type
|
|
16
|
-
}
|
|
17
|
-
),
|
|
6
|
+
({ type, messageTitle, messageText, ...rest }, options) => toastifyToast(/* @__PURE__ */ jsx(ToastRender, {
|
|
7
|
+
messageText,
|
|
8
|
+
messageTitle,
|
|
9
|
+
type
|
|
10
|
+
}), {
|
|
11
|
+
...rest,
|
|
12
|
+
...options,
|
|
13
|
+
type
|
|
14
|
+
}),
|
|
18
15
|
{ ...toastifyToast, isActive: (id) => toastifyToast.isActive(id) }
|
|
19
16
|
);
|
|
20
17
|
export {
|
package/dist/esm/toast.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/toast.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { toast as toastifyToast } from 'react-toastify';\nimport ToastRender from './ToastRender';\n\nconst toast = Object.assign(\n ({ type, messageTitle, messageText, ...rest }, options) =>\n toastifyToast(
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { toast as toastifyToast } from 'react-toastify';\nimport ToastRender from './ToastRender';\n\nconst toast = Object.assign(\n ({ type, messageTitle, messageText, ...rest }, options) =>\n toastifyToast(<ToastRender messageText={messageText} messageTitle={messageTitle} type={type} />, {\n ...rest,\n ...options,\n type,\n }),\n { ...toastifyToast, isActive: (id) => toastifyToast.isActive(id) },\n);\nexport { toast };\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACML;AALlB,SAAS,SAAS,qBAAqB;AACvC,OAAO,iBAAiB;AAExB,MAAM,QAAQ,OAAO;AAAA,EACnB,CAAC,EAAE,MAAM,cAAc,gBAAgB,KAAK,GAAG,YAC7C,cAAc,oBAAC;AAAA,IAAY;AAAA,IAA0B;AAAA,IAA4B;AAAA,GAAY,GAAI;AAAA,IAC/F,GAAG;AAAA,IACH,GAAG;AAAA,IACH;AAAA,EACF,CAAC;AAAA,EACH,EAAE,GAAG,eAAe,UAAU,CAAC,OAAO,cAAc,SAAS,EAAE,EAAE;AACnE;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-toast",
|
|
3
|
-
"version": "3.12.0-next.
|
|
3
|
+
"version": "3.12.0-next.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Toast",
|
|
6
6
|
"files": [
|
|
@@ -59,11 +59,11 @@
|
|
|
59
59
|
"indent": 4
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@elliemae/ds-button": "3.12.0-next.
|
|
63
|
-
"@elliemae/ds-classnames": "3.12.0-next.
|
|
64
|
-
"@elliemae/ds-icons": "3.12.0-next.
|
|
65
|
-
"@elliemae/ds-system": "3.12.0-next.
|
|
66
|
-
"@elliemae/ds-utilities": "3.12.0-next.
|
|
62
|
+
"@elliemae/ds-button": "3.12.0-next.1",
|
|
63
|
+
"@elliemae/ds-classnames": "3.12.0-next.1",
|
|
64
|
+
"@elliemae/ds-icons": "3.12.0-next.1",
|
|
65
|
+
"@elliemae/ds-system": "3.12.0-next.1",
|
|
66
|
+
"@elliemae/ds-utilities": "3.12.0-next.1",
|
|
67
67
|
"prop-types": "~15.8.1",
|
|
68
68
|
"react-toastify": "~6.2.0"
|
|
69
69
|
},
|