@dbmx/toasts 0.0.2

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/LICENSE.md ADDED
@@ -0,0 +1,22 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 base-x contributors
4
+ Copyright (c) 2014-2018 The Bitcoin Core developers
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,2 @@
1
+ # @DBMX / toasts
2
+
@@ -0,0 +1,14 @@
1
+ import * as React from 'react';
2
+ import { Text } from '@mantine/core';
3
+ import PropTypes from 'prop-types';
4
+
5
+ var Fake = function Fake(_ref) {
6
+ var message = _ref.message;
7
+ return /*#__PURE__*/React.createElement(Text, null, "COUCOU ".concat(message));
8
+ };
9
+ Fake.propTypes = {
10
+ message: PropTypes.string.isRequired
11
+ };
12
+
13
+ export { Fake as default };
14
+ //# sourceMappingURL=fake-JHdVf8lQ.js.map
@@ -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/dist/index.js ADDED
@@ -0,0 +1,71 @@
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
@@ -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.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;;;;"}
package/package.json ADDED
@@ -0,0 +1,82 @@
1
+ {
2
+ "name": "@dbmx/toasts",
3
+ "version": "0.0.2",
4
+ "type": "module",
5
+ "module": "./dist/index.js",
6
+ "license": "MIT",
7
+ "author": "Eric Basley <eric.basley@redpelicans.com>",
8
+ "peerDependencies": {
9
+ "@mantine/core": "^7.1.7",
10
+ "@mantine/hooks": "^7.1.7",
11
+ "prop-types": "^15.8.1",
12
+ "react": "^18.2.0",
13
+ "react-dom": "^18.2.0"
14
+ },
15
+ "dependencies": {
16
+ "@mantine/core": "^7.1.7",
17
+ "@mantine/hooks": "^7.1.7",
18
+ "prop-types": "^15.8.1",
19
+ "react": "^18.2.0",
20
+ "react-dom": "^18.2.0"
21
+ },
22
+ "publishConfig": {
23
+ "access": "public"
24
+ },
25
+ "scripts": {
26
+ "prepublishOnly": "yarn run build",
27
+ "prebuild": "shx rm -rf dist",
28
+ "build": "rollup -c",
29
+ "test": "jest src/*",
30
+ "lint:staged": "lint-staged",
31
+ "lint:eslint": "eslint --ignore-pattern '!.eslintrc.js'"
32
+ },
33
+ "lint-staged": {
34
+ "*.js": [
35
+ "prettier --write",
36
+ "git add",
37
+ "yarn lint:eslint"
38
+ ]
39
+ },
40
+ "husky": {
41
+ "hooks": {
42
+ "pre-commit": "lint-staged && yarn dist && yarn dist:add"
43
+ }
44
+ },
45
+ "devDependencies": {
46
+ "@babel/cli": "^7.10.5",
47
+ "@babel/core": "^7.23.2",
48
+ "@babel/eslint-parser": "^7.22.15",
49
+ "@babel/node": "^7.10.5",
50
+ "@babel/plugin-syntax-import-assertions": "^7.22.5",
51
+ "@babel/preset-env": "^7.23.2",
52
+ "@babel/preset-react": "^7.22.15",
53
+ "@rollup/plugin-babel": "^6.0.4",
54
+ "@rollup/plugin-commonjs": "^25.0.7",
55
+ "@rollup/plugin-node-resolve": "^15.2.3",
56
+ "@rollup/plugin-replace": "^5.0.5",
57
+ "babel-eslint": "^10.1.0",
58
+ "babel-jest": "^26.3.0",
59
+ "core-js": "^3.8.3",
60
+ "eslint": "^7.3.0",
61
+ "eslint-config-prettier": "^8.3.0",
62
+ "eslint-plugin-formatjs": "^4.11.0",
63
+ "eslint-plugin-import": "^2.21.0",
64
+ "eslint-plugin-react": "^7.33.2",
65
+ "husky": "^6.0.0",
66
+ "jest": "^26.6.3",
67
+ "jest-resolve": "^26.4.0",
68
+ "lint-staged": "^11.0.0",
69
+ "mock-amqplib": "^1.4.0",
70
+ "mock-require": "^3.0.3",
71
+ "prettier": "^2.1.0",
72
+ "rollup": "^4.0.3",
73
+ "shx": "^0.3.3"
74
+ },
75
+ "babel": {
76
+ "presets": [
77
+ "@babel/preset-env",
78
+ "@babel/preset-react"
79
+ ]
80
+ },
81
+ "gitHead": "4c3d9691e705d2fb7243612a08c6d01f69f6bb2f"
82
+ }