@dbmx/toasts 0.0.5 → 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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fake-ZW05emqw.js","sources":["../src/components/fake.js"],"sourcesContent":["import * as React from 'react'\nimport { Text } from '@mantine/core'\nimport PropTypes from 'prop-types'\n\nconst Fake = ({ message }) => {\n return <Text>{`COUCOU ${message}`}</Text>\n}\n\nFake.propTypes = {\n message: PropTypes.string.isRequired,\n}\n\nexport default Fake\n"],"names":["Fake","_ref","message","React","createElement","Text","concat","propTypes","PropTypes","string","isRequired"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAMA,IAAI,GAAG,SAAPA,IAAIA,CAAAC,IAAA,EAAoB;AAAA,EAAA,IAAdC,OAAO,GAAAD,IAAA,CAAPC,OAAO,CAAA;EACrB,oBAAOC,gBAAA,CAAAC,aAAA,CAACC,SAAI,kBAAAC,MAAA,CAAYJ,OAAO,CAAS,CAAC,CAAA;AAC3C,EAAC;AAEDF,IAAI,CAACO,SAAS,GAAG;AACfL,EAAAA,OAAO,EAAEM,SAAS,CAACC,MAAM,CAACC,UAAAA;AAC5B,CAAC;;;;"}
package/cjs/index.cjs ADDED
@@ -0,0 +1,20 @@
1
+ 'use strict';
2
+
3
+ var React = require('react');
4
+
5
+ var toasts = [{
6
+ id: 'fake',
7
+ component: /*#__PURE__*/React.lazy(function () {
8
+ return Promise.resolve().then(function () { return require('./fake-ZW05emqw.js'); });
9
+ }),
10
+ props: {
11
+ message: {
12
+ type: 'string',
13
+ required: false,
14
+ defaultValue: 'ici les bidibules'
15
+ }
16
+ }
17
+ }];
18
+
19
+ module.exports = toasts;
20
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +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\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;;;;"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fake-JHdVf8lQ.js","sources":["../src/components/fake.js"],"sourcesContent":["import * as React from 'react'\nimport { Text } from '@mantine/core'\nimport PropTypes from 'prop-types'\n\nconst Fake = ({ message }) => {\n return <Text>{`COUCOU ${message}`}</Text>\n}\n\nFake.propTypes = {\n message: PropTypes.string.isRequired,\n}\n\nexport default Fake\n"],"names":["Fake","_ref","message","React","createElement","Text","concat","propTypes","PropTypes","string","isRequired"],"mappings":";;;;AAIA,IAAMA,IAAI,GAAG,SAAPA,IAAIA,CAAAC,IAAA,EAAoB;AAAA,EAAA,IAAdC,OAAO,GAAAD,IAAA,CAAPC,OAAO,CAAA;EACrB,oBAAOC,KAAA,CAAAC,aAAA,CAACC,IAAI,kBAAAC,MAAA,CAAYJ,OAAO,CAAS,CAAC,CAAA;AAC3C,EAAC;AAEDF,IAAI,CAACO,SAAS,GAAG;AACfL,EAAAA,OAAO,EAAEM,SAAS,CAACC,MAAM,CAACC,UAAAA;AAC5B,CAAC;;;;"}
package/esm/index.js ADDED
@@ -0,0 +1,18 @@
1
+ import { lazy } from 'react';
2
+
3
+ var toasts = [{
4
+ id: 'fake',
5
+ component: /*#__PURE__*/lazy(function () {
6
+ return import('./fake-JHdVf8lQ.js');
7
+ }),
8
+ props: {
9
+ message: {
10
+ type: 'string',
11
+ required: false,
12
+ defaultValue: 'ici les bidibules'
13
+ }
14
+ }
15
+ }];
16
+
17
+ export { toasts as default };
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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\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,9 +1,8 @@
1
1
  {
2
2
  "name": "@dbmx/toasts",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "type": "module",
5
- "module": "./dist/esm/index.js",
6
- "main": "./dist/cjs/index.js",
5
+ "main": "./dist/esm/index.js",
7
6
  "license": "MIT",
8
7
  "author": "Eric Basley <eric.basley@redpelicans.com>",
9
8
  "peerDependencies": {
@@ -79,5 +78,5 @@
79
78
  "@babel/preset-react"
80
79
  ]
81
80
  },
82
- "gitHead": "aeddfe22f687d4f6fdec44304ebe9822f8328e15"
81
+ "gitHead": "6c2849db6674f001eb02188edd39a1b6e117da64"
83
82
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"fake-ZW05emqw.js","sources":["../../src/components/fake.js"],"sourcesContent":["import * as React from 'react'\nimport { Text } from '@mantine/core'\nimport PropTypes from 'prop-types'\n\nconst Fake = ({ message }) => {\n return <Text>{`COUCOU ${message}`}</Text>\n}\n\nFake.propTypes = {\n message: PropTypes.string.isRequired,\n}\n\nexport default Fake\n"],"names":["Fake","_ref","message","React","createElement","Text","concat","propTypes","PropTypes","string","isRequired"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAMA,IAAI,GAAG,SAAPA,IAAIA,CAAAC,IAAA,EAAoB;AAAA,EAAA,IAAdC,OAAO,GAAAD,IAAA,CAAPC,OAAO,CAAA;EACrB,oBAAOC,gBAAA,CAAAC,aAAA,CAACC,SAAI,kBAAAC,MAAA,CAAYJ,OAAO,CAAS,CAAC,CAAA;AAC3C,EAAC;AAEDF,IAAI,CAACO,SAAS,GAAG;AACfL,EAAAA,OAAO,EAAEM,SAAS,CAACC,MAAM,CAACC,UAAAA;AAC5B,CAAC;;;;"}
@@ -1,73 +0,0 @@
1
- 'use strict';
2
-
3
- var React = require('react');
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
- var toasts = [{
56
- id: 'fake',
57
- component: /*#__PURE__*/React.lazy(function () {
58
- return Promise.resolve().then(function () { return require('./fake-ZW05emqw.js'); });
59
- }),
60
- props: {
61
- message: {
62
- type: 'string',
63
- required: false,
64
- defaultValue: 'ici les bidibules'
65
- }
66
- }
67
- }];
68
- var index = toasts.reduce(function (acc, t) {
69
- return _objectSpread2(_objectSpread2({}, acc), {}, _defineProperty({}, t.id, t));
70
- }, {});
71
-
72
- module.exports = index;
73
- //# sourceMappingURL=index.cjs.map
@@ -1 +0,0 @@
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 +0,0 @@
1
- {"version":3,"file":"fake-JHdVf8lQ.js","sources":["../../src/components/fake.js"],"sourcesContent":["import * as React from 'react'\nimport { Text } from '@mantine/core'\nimport PropTypes from 'prop-types'\n\nconst Fake = ({ message }) => {\n return <Text>{`COUCOU ${message}`}</Text>\n}\n\nFake.propTypes = {\n message: PropTypes.string.isRequired,\n}\n\nexport default Fake\n"],"names":["Fake","_ref","message","React","createElement","Text","concat","propTypes","PropTypes","string","isRequired"],"mappings":";;;;AAIA,IAAMA,IAAI,GAAG,SAAPA,IAAIA,CAAAC,IAAA,EAAoB;AAAA,EAAA,IAAdC,OAAO,GAAAD,IAAA,CAAPC,OAAO,CAAA;EACrB,oBAAOC,KAAA,CAAAC,aAAA,CAACC,IAAI,kBAAAC,MAAA,CAAYJ,OAAO,CAAS,CAAC,CAAA;AAC3C,EAAC;AAEDF,IAAI,CAACO,SAAS,GAAG;AACfL,EAAAA,OAAO,EAAEM,SAAS,CAACC,MAAM,CAACC,UAAAA;AAC5B,CAAC;;;;"}
package/dist/esm/index.js DELETED
@@ -1,71 +0,0 @@
1
- import { lazy } from 'react';
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
- var toasts = [{
54
- id: 'fake',
55
- component: /*#__PURE__*/lazy(function () {
56
- return import('./fake-JHdVf8lQ.js');
57
- }),
58
- props: {
59
- message: {
60
- type: 'string',
61
- required: false,
62
- defaultValue: 'ici les bidibules'
63
- }
64
- }
65
- }];
66
- var index = toasts.reduce(function (acc, t) {
67
- return _objectSpread2(_objectSpread2({}, acc), {}, _defineProperty({}, t.id, t));
68
- }, {});
69
-
70
- export { index as default };
71
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
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;;;;"}
File without changes
File without changes