magic-pill 1.0.0

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/.babelrc ADDED
@@ -0,0 +1,3 @@
1
+ {
2
+ "presets": ["@babel/preset-react"]
3
+ }
package/README.md ADDED
@@ -0,0 +1,2 @@
1
+ # Magic-Pill
2
+ A new way to guide your audience and bring them contextual information through your app
@@ -0,0 +1,2 @@
1
+ import e from"react";const t=({message:t})=>e.createElement("div",null,t);export{t as default};
2
+ //# sourceMappingURL=index.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm.js","sources":["../src/MagicPill.js"],"sourcesContent":["import React from 'react';\n\nconst MagicPill = ({ message }) => {\n return <div>{message}</div>;\n};\n\nexport default MagicPill;"],"names":["MagicPill","message","React","createElement"],"mappings":"qBAEMA,MAAAA,EAAYA,EAAGC,aACZC,EAAAC,cAAA,MAAA,KAAMF"}
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=e(require("react"));module.exports=({message:e})=>t.default.createElement("div",null,e);
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../src/MagicPill.js"],"sourcesContent":["import React from 'react';\n\nconst MagicPill = ({ message }) => {\n return <div>{message}</div>;\n};\n\nexport default MagicPill;"],"names":["MagicPill","message","React","createElement"],"mappings":"8HAEkBA,EAAGC,aACZC,EAAA,QAAAC,cAAA,MAAA,KAAMF"}
package/package.json ADDED
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "magic-pill",
3
+ "version": "1.0.0",
4
+ "main": "dist/index.js",
5
+ "module": "dist/index.esm.js",
6
+ "description": "A new way to guide your audience and bring them contextual information through your app",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/CedricTheveneau/Magic-Pill"
10
+ },
11
+ "scripts": {
12
+ "build": "rollup -c",
13
+ "prepare": "npm run build"
14
+ },
15
+ "peerDependencies": {
16
+ "react": "^17.0.0 || ^18.0.0",
17
+ "react-dom": "^17.0.0 || ^18.0.0",
18
+ "next": "^13.0.0"
19
+ },
20
+ "keywords": ["notifications", "magicpill", "magic pill" ],
21
+ "author": "Cédric THEVENEAU",
22
+ "license": "MIT",
23
+ "dependencies": {
24
+ "react": "^18.3.1",
25
+ "react-dom": "^18.3.1"
26
+ },
27
+ "devDependencies": {
28
+ "@babel/core": "^7.26.0",
29
+ "@babel/preset-react": "^7.25.9",
30
+ "rollup": "^2.79.2",
31
+ "rollup-plugin-babel": "^4.4.0",
32
+ "rollup-plugin-terser": "^7.0.2"
33
+ }
34
+ }
@@ -0,0 +1,24 @@
1
+ import babel from 'rollup-plugin-babel';
2
+ import { terser } from 'rollup-plugin-terser';
3
+ import pkg from './package.json';
4
+
5
+ export default {
6
+ input: 'src/MagicPill.js',
7
+ output: [
8
+ {
9
+ file: pkg.main,
10
+ format: 'cjs',
11
+ sourcemap: true,
12
+ },
13
+ {
14
+ file: pkg.module,
15
+ format: 'esm',
16
+ sourcemap: true,
17
+ },
18
+ ],
19
+ plugins: [
20
+ babel({ exclude: 'node_modules/**' }),
21
+ terser()
22
+ ],
23
+ external: ['react', 'react-dom', 'next']
24
+ };
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+
3
+ const MagicPill = ({ message }) => {
4
+ return <div>{message}</div>;
5
+ };
6
+
7
+ export default MagicPill;