@dbmx/toasts 0.0.6 → 0.0.7

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 CHANGED
@@ -2,56 +2,6 @@
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',
57
7
  component: /*#__PURE__*/React.lazy(function () {
@@ -65,9 +15,6 @@ var toasts = [{
65
15
  }
66
16
  }
67
17
  }];
68
- var index = toasts.reduce(function (acc, t) {
69
- return _objectSpread2(_objectSpread2({}, acc), {}, _defineProperty({}, t.id, t));
70
- }, {});
71
18
 
72
- module.exports = index;
19
+ module.exports = toasts;
73
20
  //# 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.reduce((acc, t) => ({ ...acc, [t.id]: t }), {})\n"],"names":["toasts","id","component","lazy","props","message","type","required","defaultValue","reduce","acc","t","_objectSpread","_defineProperty"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,IAAMA,MAAM,GAAG,CACb;AACEC,EAAAA,EAAE,EAAE,MAAM;EACVC,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,CACF,CAAA;AAED,YAAeR,MAAM,CAACS,MAAM,CAAC,UAACC,GAAG,EAAEC,CAAC,EAAA;AAAA,EAAA,OAAAC,cAAA,CAAAA,cAAA,CAAA,EAAA,EAAWF,GAAG,CAAA,EAAA,EAAA,EAAAG,eAAA,CAAA,EAAA,EAAGF,CAAC,CAACV,EAAE,EAAGU,CAAC,CAAA,CAAA,CAAA;AAAA,CAAG,EAAE,EAAE,CAAC;;;;"}
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\n"],"names":["toasts","id","component","lazy","props","message","type","required","defaultValue"],"mappings":";;;;AAEMA,IAAAA,MAAM,GAAG,CACb;AACEC,EAAAA,EAAE,EAAE,MAAM;EACVC,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,55 +1,5 @@
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',
55
5
  component: /*#__PURE__*/lazy(function () {
@@ -63,9 +13,6 @@ var toasts = [{
63
13
  }
64
14
  }
65
15
  }];
66
- var index = toasts.reduce(function (acc, t) {
67
- return _objectSpread2(_objectSpread2({}, acc), {}, _defineProperty({}, t.id, t));
68
- }, {});
69
16
 
70
- export { index as default };
17
+ export { toasts as default };
71
18
  //# 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.reduce((acc, t) => ({ ...acc, [t.id]: t }), {})\n"],"names":["toasts","id","component","lazy","props","message","type","required","defaultValue","reduce","acc","t","_objectSpread","_defineProperty"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,IAAMA,MAAM,GAAG,CACb;AACEC,EAAAA,EAAE,EAAE,MAAM;EACVC,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,CACF,CAAA;AAED,YAAeR,MAAM,CAACS,MAAM,CAAC,UAACC,GAAG,EAAEC,CAAC,EAAA;AAAA,EAAA,OAAAC,cAAA,CAAAA,cAAA,CAAA,EAAA,EAAWF,GAAG,CAAA,EAAA,EAAA,EAAAG,eAAA,CAAA,EAAA,EAAGF,CAAC,CAACV,EAAE,EAAGU,CAAC,CAAA,CAAA,CAAA;AAAA,CAAG,EAAE,EAAE,CAAC;;;;"}
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\n"],"names":["toasts","id","component","lazy","props","message","type","required","defaultValue"],"mappings":";;AAEMA,IAAAA,MAAM,GAAG,CACb;AACEC,EAAAA,EAAE,EAAE,MAAM;EACVC,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.6",
3
+ "version": "0.0.7",
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": "75bebc8c3dde0bc0867c3ca308ac8d8fe28a844a"
81
+ "gitHead": "6c2849db6674f001eb02188edd39a1b6e117da64"
82
82
  }