react-famewall 0.1.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/LICENSE +21 -0
- package/README.md +31 -0
- package/dist/index.js +30 -0
- package/dist/index.js.map +1 -0
- package/dist/index.modern.js +28 -0
- package/dist/index.modern.js.map +1 -0
- package/package.json +53 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021 Astramind Technologies Pvt Ltd
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# famewall-react
|
|
2
|
+
|
|
3
|
+
> React component for Famewall Embeds
|
|
4
|
+
|
|
5
|
+
Highlight and display social media mentions as beautiful testimonials. Enjoy the fame you receive from customers by [signing up here](https://famewall.io).
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install --save react-famewall
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```jsx
|
|
16
|
+
import React from 'react'
|
|
17
|
+
import FamewallEmbed from 'react-famewall'
|
|
18
|
+
|
|
19
|
+
const App = () => {
|
|
20
|
+
|
|
21
|
+
return(
|
|
22
|
+
<FamewallEmbed
|
|
23
|
+
wallUrl="famewall"
|
|
24
|
+
/>
|
|
25
|
+
)
|
|
26
|
+
}
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## License
|
|
30
|
+
|
|
31
|
+
MIT ©2021 [Famewall](https://famewall.io)
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
2
|
+
|
|
3
|
+
var React = _interopDefault(require('react'));
|
|
4
|
+
var IframeResizer = _interopDefault(require('iframe-resizer-react'));
|
|
5
|
+
var nanoid = require('nanoid');
|
|
6
|
+
|
|
7
|
+
var FamewallEmbed = function FamewallEmbed(_ref) {
|
|
8
|
+
var wallUrl = _ref.wallUrl;
|
|
9
|
+
|
|
10
|
+
if (!wallUrl) {
|
|
11
|
+
console.error('A url is required');
|
|
12
|
+
return null;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
var embedId = nanoid.nanoid();
|
|
16
|
+
return /*#__PURE__*/React.createElement(IframeResizer, {
|
|
17
|
+
title: "Famewall Embed " + wallUrl.replace('https://embed.famewall.io', ''),
|
|
18
|
+
id: embedId,
|
|
19
|
+
src: "https://embed.famewall.io/" + wallUrl,
|
|
20
|
+
frameBorder: "0",
|
|
21
|
+
scrolling: "yes",
|
|
22
|
+
width: "100%",
|
|
23
|
+
style: {
|
|
24
|
+
border: 0
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
module.exports = FamewallEmbed;
|
|
30
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/index.js"],"sourcesContent":["import React from 'react'\nimport IframeResizer from 'iframe-resizer-react'\nimport {nanoid} from 'nanoid'\n\nconst FamewallEmbed = ({ wallUrl }) => {\n if (!wallUrl) {\n console.error('A url is required')\n return null\n }\n const embedId = nanoid()\n\n return (\n <IframeResizer\n title={`Famewall Embed ${wallUrl.replace(\n 'https://embed.famewall.io',\n ''\n )}`}\n id={embedId}\n src={`https://embed.famewall.io/${wallUrl}`}\n frameBorder='0'\n scrolling='yes'\n width='100%'\n style={{\n border: 0\n }}\n />\n )\n}\n\nexport default FamewallEmbed\n"],"names":["FamewallEmbed","wallUrl","console","error","embedId","nanoid","replace","border"],"mappings":";;;;;;AAIA,IAAMA,aAAa,GAAG,SAAhBA,aAAgB,OAAiB;AAAA,MAAdC,OAAc,QAAdA,OAAc;;AACrC,MAAI,CAACA,OAAL,EAAc;AACZC,IAAAA,OAAO,CAACC,KAAR,CAAc,mBAAd;AACA,WAAO,IAAP;AACD;;AACD,MAAMC,OAAO,GAAGC,aAAM,EAAtB;AAEA,sBACE,oBAAC,aAAD;AACE,IAAA,KAAK,sBAAoBJ,OAAO,CAACK,OAAR,CACvB,2BADuB,EAEvB,EAFuB,CAD3B;AAKE,IAAA,EAAE,EAAEF,OALN;AAME,IAAA,GAAG,iCAA+BH,OANpC;AAOE,IAAA,WAAW,EAAC,GAPd;AAQE,IAAA,SAAS,EAAC,KARZ;AASE,IAAA,KAAK,EAAC,MATR;AAUE,IAAA,KAAK,EAAE;AACLM,MAAAA,MAAM,EAAE;AADH;AAVT,IADF;AAgBD,CAvBD;;;;"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import IframeResizer from 'iframe-resizer-react';
|
|
3
|
+
import { nanoid } from 'nanoid';
|
|
4
|
+
|
|
5
|
+
var FamewallEmbed = function FamewallEmbed(_ref) {
|
|
6
|
+
var wallUrl = _ref.wallUrl;
|
|
7
|
+
|
|
8
|
+
if (!wallUrl) {
|
|
9
|
+
console.error('A url is required');
|
|
10
|
+
return null;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
var embedId = nanoid();
|
|
14
|
+
return /*#__PURE__*/React.createElement(IframeResizer, {
|
|
15
|
+
title: "Famewall Embed " + wallUrl.replace('https://embed.famewall.io', ''),
|
|
16
|
+
id: embedId,
|
|
17
|
+
src: "https://embed.famewall.io/" + wallUrl,
|
|
18
|
+
frameBorder: "0",
|
|
19
|
+
scrolling: "yes",
|
|
20
|
+
width: "100%",
|
|
21
|
+
style: {
|
|
22
|
+
border: 0
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export default FamewallEmbed;
|
|
28
|
+
//# sourceMappingURL=index.modern.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.modern.js","sources":["../src/index.js"],"sourcesContent":["import React from 'react'\nimport IframeResizer from 'iframe-resizer-react'\nimport {nanoid} from 'nanoid'\n\nconst FamewallEmbed = ({ wallUrl }) => {\n if (!wallUrl) {\n console.error('A url is required')\n return null\n }\n const embedId = nanoid()\n\n return (\n <IframeResizer\n title={`Famewall Embed ${wallUrl.replace(\n 'https://embed.famewall.io',\n ''\n )}`}\n id={embedId}\n src={`https://embed.famewall.io/${wallUrl}`}\n frameBorder='0'\n scrolling='yes'\n width='100%'\n style={{\n border: 0\n }}\n />\n )\n}\n\nexport default FamewallEmbed\n"],"names":["FamewallEmbed","wallUrl","console","error","embedId","nanoid","replace","border"],"mappings":";;;;AAIA,IAAMA,aAAa,GAAG,SAAhBA,aAAgB,OAAiB;AAAA,MAAdC,OAAc,QAAdA,OAAc;;AACrC,MAAI,CAACA,OAAL,EAAc;AACZC,IAAAA,OAAO,CAACC,KAAR,CAAc,mBAAd;AACA,WAAO,IAAP;AACD;;AACD,MAAMC,OAAO,GAAGC,MAAM,EAAtB;AAEA,sBACE,oBAAC,aAAD;AACE,IAAA,KAAK,sBAAoBJ,OAAO,CAACK,OAAR,CACvB,2BADuB,EAEvB,EAFuB,CAD3B;AAKE,IAAA,EAAE,EAAEF,OALN;AAME,IAAA,GAAG,iCAA+BH,OANpC;AAOE,IAAA,WAAW,EAAC,GAPd;AAQE,IAAA,SAAS,EAAC,KARZ;AASE,IAAA,KAAK,EAAC,MATR;AAUE,IAAA,KAAK,EAAE;AACLM,MAAAA,MAAM,EAAE;AADH;AAVT,IADF;AAgBD,CAvBD;;;;"}
|
package/package.json
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "react-famewall",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "React Component for Famewall Embeds",
|
|
5
|
+
"author": "Goutham J <goutham@famewall.io>",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": "gouterz/react-famewall",
|
|
8
|
+
"main": "dist/index.js",
|
|
9
|
+
"module": "dist/index.modern.js",
|
|
10
|
+
"source": "src/index.js",
|
|
11
|
+
"engines": {
|
|
12
|
+
"node": ">=10"
|
|
13
|
+
},
|
|
14
|
+
"scripts": {
|
|
15
|
+
"build": "microbundle-crl --no-compress --format modern,cjs",
|
|
16
|
+
"start": "microbundle-crl watch --no-compress --format modern,cjs",
|
|
17
|
+
"prepare": "run-s build",
|
|
18
|
+
"predeploy": "cd example && npm install && npm run build",
|
|
19
|
+
"deploy": "gh-pages -d example/build"
|
|
20
|
+
},
|
|
21
|
+
"peerDependencies": {
|
|
22
|
+
"react": "^16.0.0"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"babel-eslint": "^10.0.3",
|
|
26
|
+
"cross-env": "^7.0.2",
|
|
27
|
+
"eslint": "^6.8.0",
|
|
28
|
+
"eslint-config-prettier": "^6.7.0",
|
|
29
|
+
"eslint-config-standard": "^14.1.0",
|
|
30
|
+
"eslint-config-standard-react": "^9.2.0",
|
|
31
|
+
"eslint-plugin-import": "^2.18.2",
|
|
32
|
+
"eslint-plugin-node": "^11.0.0",
|
|
33
|
+
"eslint-plugin-prettier": "^3.1.1",
|
|
34
|
+
"eslint-plugin-promise": "^4.2.1",
|
|
35
|
+
"eslint-plugin-react": "^7.17.0",
|
|
36
|
+
"eslint-plugin-standard": "^4.0.1",
|
|
37
|
+
"gh-pages": "^2.2.0",
|
|
38
|
+
"microbundle-crl": "^0.13.10",
|
|
39
|
+
"npm-run-all": "^4.1.5",
|
|
40
|
+
"prettier": "^2.0.4",
|
|
41
|
+
"react": "^16.13.1",
|
|
42
|
+
"react-dom": "^16.13.1",
|
|
43
|
+
"react-scripts": "^3.4.1"
|
|
44
|
+
},
|
|
45
|
+
"files": [
|
|
46
|
+
"dist"
|
|
47
|
+
],
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"debug": "^4.2.0",
|
|
50
|
+
"iframe-resizer-react": "^1.1.0",
|
|
51
|
+
"nanoid": "^3.3.1"
|
|
52
|
+
}
|
|
53
|
+
}
|