@dbmx/toasts 0.0.6 → 0.0.8
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/cjs/index.cjs +3 -54
- package/cjs/index.cjs.map +1 -1
- package/esm/index.js +3 -54
- package/esm/index.js.map +1 -1
- package/package.json +2 -2
package/cjs/index.cjs
CHANGED
|
@@ -2,58 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
|
|
5
|
-
function ownKeys(e, r) {
|
|
6
|
-
var t = Object.keys(e);
|
|
7
|
-
if (Object.getOwnPropertySymbols) {
|
|
8
|
-
var o = Object.getOwnPropertySymbols(e);
|
|
9
|
-
r && (o = o.filter(function (r) {
|
|
10
|
-
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
11
|
-
})), t.push.apply(t, o);
|
|
12
|
-
}
|
|
13
|
-
return t;
|
|
14
|
-
}
|
|
15
|
-
function _objectSpread2(e) {
|
|
16
|
-
for (var r = 1; r < arguments.length; r++) {
|
|
17
|
-
var t = null != arguments[r] ? arguments[r] : {};
|
|
18
|
-
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
19
|
-
_defineProperty(e, r, t[r]);
|
|
20
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
21
|
-
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
return e;
|
|
25
|
-
}
|
|
26
|
-
function _defineProperty(obj, key, value) {
|
|
27
|
-
key = _toPropertyKey(key);
|
|
28
|
-
if (key in obj) {
|
|
29
|
-
Object.defineProperty(obj, key, {
|
|
30
|
-
value: value,
|
|
31
|
-
enumerable: true,
|
|
32
|
-
configurable: true,
|
|
33
|
-
writable: true
|
|
34
|
-
});
|
|
35
|
-
} else {
|
|
36
|
-
obj[key] = value;
|
|
37
|
-
}
|
|
38
|
-
return obj;
|
|
39
|
-
}
|
|
40
|
-
function _toPrimitive(input, hint) {
|
|
41
|
-
if (typeof input !== "object" || input === null) return input;
|
|
42
|
-
var prim = input[Symbol.toPrimitive];
|
|
43
|
-
if (prim !== undefined) {
|
|
44
|
-
var res = prim.call(input, hint || "default");
|
|
45
|
-
if (typeof res !== "object") return res;
|
|
46
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
47
|
-
}
|
|
48
|
-
return (hint === "string" ? String : Number)(input);
|
|
49
|
-
}
|
|
50
|
-
function _toPropertyKey(arg) {
|
|
51
|
-
var key = _toPrimitive(arg, "string");
|
|
52
|
-
return typeof key === "symbol" ? key : String(key);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
5
|
var toasts = [{
|
|
56
6
|
id: 'fake',
|
|
7
|
+
name: 'Fake Component',
|
|
8
|
+
description: ' blah blah blah ...',
|
|
57
9
|
component: /*#__PURE__*/React.lazy(function () {
|
|
58
10
|
return Promise.resolve().then(function () { return require('./fake-ZW05emqw.js'); });
|
|
59
11
|
}),
|
|
@@ -65,9 +17,6 @@ var toasts = [{
|
|
|
65
17
|
}
|
|
66
18
|
}
|
|
67
19
|
}];
|
|
68
|
-
var index = toasts.reduce(function (acc, t) {
|
|
69
|
-
return _objectSpread2(_objectSpread2({}, acc), {}, _defineProperty({}, t.id, t));
|
|
70
|
-
}, {});
|
|
71
20
|
|
|
72
|
-
module.exports =
|
|
21
|
+
module.exports = toasts;
|
|
73
22
|
//# sourceMappingURL=index.cjs.map
|
package/cjs/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../src/index.js"],"sourcesContent":["import { lazy } from 'react'\n\nconst toasts = [\n {\n id: 'fake',\n component: lazy(() => import('./components/fake.js')),\n props: {\n message: {\n type: 'string',\n required: false,\n defaultValue: 'ici les bidibules',\n },\n },\n },\n]\n\nexport default toasts
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../src/index.js"],"sourcesContent":["import { lazy } from 'react'\n\nconst toasts = [\n {\n id: 'fake',\n name: 'Fake Component',\n description: ' blah blah blah ...',\n component: lazy(() => import('./components/fake.js')),\n props: {\n message: {\n type: 'string',\n required: false,\n defaultValue: 'ici les bidibules',\n },\n },\n },\n]\n\nexport default toasts\n"],"names":["toasts","id","name","description","component","lazy","props","message","type","required","defaultValue"],"mappings":";;;;AAEMA,IAAAA,MAAM,GAAG,CACb;AACEC,EAAAA,EAAE,EAAE,MAAM;AACVC,EAAAA,IAAI,EAAE,gBAAgB;AACtBC,EAAAA,WAAW,EAAE,qBAAqB;EAClCC,SAAS,eAAEC,UAAI,CAAC,YAAA;IAAA,OAAM,oDAAO,oBAAsB,KAAC,CAAA;GAAC,CAAA;AACrDC,EAAAA,KAAK,EAAE;AACLC,IAAAA,OAAO,EAAE;AACPC,MAAAA,IAAI,EAAE,QAAQ;AACdC,MAAAA,QAAQ,EAAE,KAAK;AACfC,MAAAA,YAAY,EAAE,mBAAA;AAChB,KAAA;AACF,GAAA;AACF,CAAC;;;;"}
|
package/esm/index.js
CHANGED
|
@@ -1,57 +1,9 @@
|
|
|
1
1
|
import { lazy } from 'react';
|
|
2
2
|
|
|
3
|
-
function ownKeys(e, r) {
|
|
4
|
-
var t = Object.keys(e);
|
|
5
|
-
if (Object.getOwnPropertySymbols) {
|
|
6
|
-
var o = Object.getOwnPropertySymbols(e);
|
|
7
|
-
r && (o = o.filter(function (r) {
|
|
8
|
-
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
9
|
-
})), t.push.apply(t, o);
|
|
10
|
-
}
|
|
11
|
-
return t;
|
|
12
|
-
}
|
|
13
|
-
function _objectSpread2(e) {
|
|
14
|
-
for (var r = 1; r < arguments.length; r++) {
|
|
15
|
-
var t = null != arguments[r] ? arguments[r] : {};
|
|
16
|
-
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
17
|
-
_defineProperty(e, r, t[r]);
|
|
18
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
19
|
-
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
return e;
|
|
23
|
-
}
|
|
24
|
-
function _defineProperty(obj, key, value) {
|
|
25
|
-
key = _toPropertyKey(key);
|
|
26
|
-
if (key in obj) {
|
|
27
|
-
Object.defineProperty(obj, key, {
|
|
28
|
-
value: value,
|
|
29
|
-
enumerable: true,
|
|
30
|
-
configurable: true,
|
|
31
|
-
writable: true
|
|
32
|
-
});
|
|
33
|
-
} else {
|
|
34
|
-
obj[key] = value;
|
|
35
|
-
}
|
|
36
|
-
return obj;
|
|
37
|
-
}
|
|
38
|
-
function _toPrimitive(input, hint) {
|
|
39
|
-
if (typeof input !== "object" || input === null) return input;
|
|
40
|
-
var prim = input[Symbol.toPrimitive];
|
|
41
|
-
if (prim !== undefined) {
|
|
42
|
-
var res = prim.call(input, hint || "default");
|
|
43
|
-
if (typeof res !== "object") return res;
|
|
44
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
45
|
-
}
|
|
46
|
-
return (hint === "string" ? String : Number)(input);
|
|
47
|
-
}
|
|
48
|
-
function _toPropertyKey(arg) {
|
|
49
|
-
var key = _toPrimitive(arg, "string");
|
|
50
|
-
return typeof key === "symbol" ? key : String(key);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
3
|
var toasts = [{
|
|
54
4
|
id: 'fake',
|
|
5
|
+
name: 'Fake Component',
|
|
6
|
+
description: ' blah blah blah ...',
|
|
55
7
|
component: /*#__PURE__*/lazy(function () {
|
|
56
8
|
return import('./fake-JHdVf8lQ.js');
|
|
57
9
|
}),
|
|
@@ -63,9 +15,6 @@ var toasts = [{
|
|
|
63
15
|
}
|
|
64
16
|
}
|
|
65
17
|
}];
|
|
66
|
-
var index = toasts.reduce(function (acc, t) {
|
|
67
|
-
return _objectSpread2(_objectSpread2({}, acc), {}, _defineProperty({}, t.id, t));
|
|
68
|
-
}, {});
|
|
69
18
|
|
|
70
|
-
export {
|
|
19
|
+
export { toasts as default };
|
|
71
20
|
//# sourceMappingURL=index.js.map
|
package/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/index.js"],"sourcesContent":["import { lazy } from 'react'\n\nconst toasts = [\n {\n id: 'fake',\n component: lazy(() => import('./components/fake.js')),\n props: {\n message: {\n type: 'string',\n required: false,\n defaultValue: 'ici les bidibules',\n },\n },\n },\n]\n\nexport default toasts
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/index.js"],"sourcesContent":["import { lazy } from 'react'\n\nconst toasts = [\n {\n id: 'fake',\n name: 'Fake Component',\n description: ' blah blah blah ...',\n component: lazy(() => import('./components/fake.js')),\n props: {\n message: {\n type: 'string',\n required: false,\n defaultValue: 'ici les bidibules',\n },\n },\n },\n]\n\nexport default toasts\n"],"names":["toasts","id","name","description","component","lazy","props","message","type","required","defaultValue"],"mappings":";;AAEMA,IAAAA,MAAM,GAAG,CACb;AACEC,EAAAA,EAAE,EAAE,MAAM;AACVC,EAAAA,IAAI,EAAE,gBAAgB;AACtBC,EAAAA,WAAW,EAAE,qBAAqB;EAClCC,SAAS,eAAEC,IAAI,CAAC,YAAA;IAAA,OAAM,OAAO,oBAAsB,CAAC,CAAA;GAAC,CAAA;AACrDC,EAAAA,KAAK,EAAE;AACLC,IAAAA,OAAO,EAAE;AACPC,MAAAA,IAAI,EAAE,QAAQ;AACdC,MAAAA,QAAQ,EAAE,KAAK;AACfC,MAAAA,YAAY,EAAE,mBAAA;AAChB,KAAA;AACF,GAAA;AACF,CAAC;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dbmx/toasts",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/esm/index.js",
|
|
6
6
|
"license": "MIT",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"@babel/preset-react"
|
|
79
79
|
]
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "4575632881638d35d8192702bcb1908878dd7089"
|
|
82
82
|
}
|