@elliemae/ds-toast 2.2.0 → 2.3.0-alpha.3

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/esm/toast.js CHANGED
@@ -1,37 +1,17 @@
1
- import 'core-js/modules/esnext.async-iterator.filter.js';
2
- import 'core-js/modules/esnext.iterator.constructor.js';
3
- import 'core-js/modules/esnext.iterator.filter.js';
4
- import 'core-js/modules/esnext.async-iterator.for-each.js';
5
- import 'core-js/modules/esnext.iterator.for-each.js';
6
- import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
7
- import _jsx from '@babel/runtime/helpers/esm/jsx';
8
- import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
9
- import 'react';
10
- import { toast as toast$1 } from 'react-toastify';
11
- import ToastRender from './ToastRender.js';
12
-
13
- const _excluded = ["type", "messageTitle", "messageText"];
14
-
15
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
16
-
17
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
18
- const toast = Object.assign((_ref, options) => {
19
- let {
20
- type,
21
- messageTitle,
22
- messageText
23
- } = _ref,
24
- rest = _objectWithoutProperties(_ref, _excluded);
25
-
26
- return toast$1( /*#__PURE__*/_jsx(ToastRender, {
27
- messageText: messageText,
28
- messageTitle: messageTitle,
29
- type: type
30
- }), _objectSpread(_objectSpread(_objectSpread({}, rest), options), {}, {
31
- type
32
- }));
33
- }, _objectSpread(_objectSpread({}, toast$1), {}, {
34
- isActive: id => toast$1.isActive(id)
35
- }));
36
-
37
- export { toast };
1
+ import * as React from "react";
2
+ import React2 from "react";
3
+ import { toast as toastifyToast } from "react-toastify";
4
+ import ToastRender from "./ToastRender";
5
+ const toast = Object.assign(({ type, messageTitle, messageText, ...rest }, options) => toastifyToast(/* @__PURE__ */ React2.createElement(ToastRender, {
6
+ messageText,
7
+ messageTitle,
8
+ type
9
+ }), {
10
+ ...rest,
11
+ ...options,
12
+ type
13
+ }), { ...toastifyToast, isActive: (id) => toastifyToast.isActive(id) });
14
+ export {
15
+ toast
16
+ };
17
+ //# sourceMappingURL=toast.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 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(\n <ToastRender\n messageText={messageText}\n messageTitle={messageTitle}\n type={type}\n />,\n {\n ...rest,\n ...options,\n type,\n },\n ),\n { ...toastifyToast, isActive: (id) => toastifyToast.isActive(id) },\n);\nexport { toast };\n"],
5
+ "mappings": "AAAA;ACAA;AACA;AACA;AAEA,MAAM,QAAQ,OAAO,OACnB,CAAC,EAAE,MAAM,cAAc,gBAAgB,QAAQ,YAC7C,cACE,qCAAC,aAAD;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,IAEF;AAAA,KACK;AAAA,KACA;AAAA,EACH;AAAA,IAGN,KAAK,eAAe,UAAU,CAAC,OAAO,cAAc,SAAS;",
6
+ "names": []
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-toast",
3
- "version": "2.2.0",
3
+ "version": "2.3.0-alpha.3",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Toast",
6
6
  "module": "./esm/index.js",
@@ -56,10 +56,10 @@
56
56
  "build": "node ../../scripts/build/build.js"
57
57
  },
58
58
  "dependencies": {
59
- "@elliemae/ds-button": "2.2.0",
60
- "@elliemae/ds-classnames": "2.2.0",
61
- "@elliemae/ds-icons": "2.2.0",
62
- "@elliemae/ds-system": "2.2.0",
59
+ "@elliemae/ds-button": "2.3.0-alpha.3",
60
+ "@elliemae/ds-classnames": "2.3.0-alpha.3",
61
+ "@elliemae/ds-icons": "2.3.0-alpha.3",
62
+ "@elliemae/ds-system": "2.3.0-alpha.3",
63
63
  "prop-types": "~15.7.2",
64
64
  "react-desc": "~4.1.3",
65
65
  "react-toastify": "~6.2.0"