@stigg/embed-sdk 0.0.1

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,9 @@
1
+ <!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="theme-color" content="#000000"><meta name="description" content="Stigg Embed SDK"><link rel="apple-touch-icon" href="logo192.png"><link href="/embed-sdk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script src="/embed-sdk.js"></script></body><script>const stigg = Stigg({
2
+ apiKey: new URLSearchParams(window.location.search).get('apiKey'),
3
+ });
4
+ const paywall = stigg.Paywall({
5
+ onPlanSelected: (...args) => {
6
+ console.log('Plan selected', args);
7
+ },
8
+ });
9
+ paywall.mount('#root');</script></html>
package/package.json ADDED
@@ -0,0 +1,52 @@
1
+ {
2
+ "name": "@stigg/embed-sdk",
3
+ "version": "0.0.1",
4
+ "license": "MIT",
5
+ "main": "dist/embed-sdk.js",
6
+ "files": [
7
+ "dist/**/*"
8
+ ],
9
+ "publishConfig": {
10
+ "access": "public"
11
+ },
12
+ "scripts": {
13
+ "start": "webpack-dev-server --config build-utils/webpack.config.js --env.env=dev",
14
+ "build": "webpack --config build-utils/webpack.config.js --env.env=prod",
15
+ "test": "echo \"Error: no tests yet\" && exit 0"
16
+ },
17
+ "dependencies": {
18
+ "@stigg/react-sdk": "^0.8.1",
19
+ "react": "^16.11.0",
20
+ "react-dom": "^16.11.0",
21
+ "react-scripts": "3.2.0"
22
+ },
23
+ "eslintConfig": {
24
+ "extends": "react-app"
25
+ },
26
+ "browserslist": {
27
+ "production": [
28
+ ">0.2%",
29
+ "not dead",
30
+ "not op_mini all"
31
+ ],
32
+ "development": [
33
+ "last 1 chrome version",
34
+ "last 1 firefox version",
35
+ "last 1 safari version"
36
+ ]
37
+ },
38
+ "devDependencies": {
39
+ "@babel/core": "^7.7.2",
40
+ "@babel/plugin-proposal-class-properties": "^7.7.0",
41
+ "@babel/preset-env": "^7.7.1",
42
+ "@babel/preset-react": "^7.7.0",
43
+ "babel-loader": "^8.0.6",
44
+ "clean-webpack-plugin": "^3.0.0",
45
+ "css-loader": "^3.2.0",
46
+ "dotenv-webpack": "^1.7.0",
47
+ "prettier": "^2.7.1",
48
+ "webpack-cli": "^3.3.10",
49
+ "webpack-dev-server": "^3.9.0",
50
+ "webpack-merge": "^4.2.2"
51
+ }
52
+ }