@planningcenter/wrapped 0.0.0-alpha
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/README.md +64 -0
- package/dist/index.d.ts +0 -0
- package/dist/wrapped.js +0 -0
- package/dist/wrapped.modern.js +0 -0
- package/dist/wrapped.module.js +0 -0
- package/dist/wrapped.umd.js +0 -0
- package/package.json +63 -0
package/README.md
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# @planningcenter/wrapped
|
|
2
|
+
|
|
3
|
+
This package enables adding a [Planning Center Wrapped](https://app.asana.com/0/1208915073501662/1208918971246017) banner to your app with ease! Exported as a React component, it includes everything needed. All you need to do is supply viewable permissions!
|
|
4
|
+
### Light mode
|
|
5
|
+
<img width="1006" height="66" alt="image" src="https://github.com/user-attachments/assets/54090151-b900-4f6e-80ae-6dc3f99dfebc" />
|
|
6
|
+
|
|
7
|
+
### Dark mode
|
|
8
|
+
<img width="1007" height="67" alt="image" src="https://github.com/user-attachments/assets/814960ed-1e95-49a5-89f1-6f2ac2176401" />
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
## Installation
|
|
13
|
+
|
|
14
|
+
### Add the package
|
|
15
|
+
|
|
16
|
+
It's a private repo, so you need to supply the auth token or grab it from our private gem repo
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
yarn add @planningcenter/wrapped
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### Add the banner to your layout
|
|
24
|
+
|
|
25
|
+
```js
|
|
26
|
+
<ThemeProvider className="product-wrap">
|
|
27
|
+
<div className="topbar-wrap">
|
|
28
|
+
<PcoWrappedBanner canView={currentPerson.can_view_wrapped} />
|
|
29
|
+
<HomeTopbar {...context.topbar} autoMountAddon={autoMountAddon} />
|
|
30
|
+
</div>
|
|
31
|
+
...
|
|
32
|
+
</ThemProvider>
|
|
33
|
+
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### That's it!
|
|
37
|
+
|
|
38
|
+
## Development
|
|
39
|
+
|
|
40
|
+
I didn't have time to create a dummy app to develop from. For now, home is easiest app to spin up and develop from.
|
|
41
|
+
|
|
42
|
+
### Clone the repo
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
git clone git@github.com:planningcenter/wrapped.git
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### `cd` into the gem and start the `microbuild` watcher.
|
|
49
|
+
|
|
50
|
+
This will automatically output the built JS file.
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
cd pco-wrapped && yarn dev
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
If you need to re-build JS without running the watcher you can run
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
yarn build
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Contributing
|
|
63
|
+
|
|
64
|
+
Commit changes, submit a PR, then release a new version!
|
package/dist/index.d.ts
ADDED
|
File without changes
|
package/dist/wrapped.js
ADDED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@planningcenter/wrapped",
|
|
3
|
+
"version": "0.0.0-alpha",
|
|
4
|
+
"description": "PCO Wrapped components",
|
|
5
|
+
"source": "index.tsx",
|
|
6
|
+
"main": "./dist/wrapped.js",
|
|
7
|
+
"exports": "./dist/wrapped.modern.js",
|
|
8
|
+
"module": "./dist/wrapped.module.js",
|
|
9
|
+
"unpkg": "./dist/wrapped.umd.js",
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"amdName": "PLANNINGCENTER.wrapped",
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "git+https://github.com/planningcenter/wrapped.git"
|
|
15
|
+
},
|
|
16
|
+
"author": "Tanner Mares <tanner@planningcenter.com>",
|
|
17
|
+
"license": "MIT",
|
|
18
|
+
"files": [
|
|
19
|
+
"dist"
|
|
20
|
+
],
|
|
21
|
+
"scripts": {
|
|
22
|
+
"build": "exit 0",
|
|
23
|
+
"dev": "microbundle watch",
|
|
24
|
+
"prepublishOnly": "yarn run build",
|
|
25
|
+
"test": "jest"
|
|
26
|
+
},
|
|
27
|
+
"bugs": {
|
|
28
|
+
"url": "https://github.com/planningcenter/wrapped/issues"
|
|
29
|
+
},
|
|
30
|
+
"homepage": "https://github.com/planningcenter/wrapped",
|
|
31
|
+
"private": false,
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@planningcenter/tapestry": "^2.6.0",
|
|
34
|
+
"@planningcenter/tapestry-react": "^4.13.0"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@types/jest": "^29.5.14",
|
|
38
|
+
"@types/react": "^18.0.0",
|
|
39
|
+
"@types/react-dom": "^18.0.0",
|
|
40
|
+
"@typescript-eslint/eslint-plugin": "^8.29.0",
|
|
41
|
+
"@typescript-eslint/parser": "^8.29.0",
|
|
42
|
+
"eslint": "^9.23.0",
|
|
43
|
+
"eslint-import-resolver-typescript": "^4.3.1",
|
|
44
|
+
"eslint-plugin-import": "^2.31.0",
|
|
45
|
+
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
46
|
+
"eslint-plugin-sort-keys-fix": "^1.1.2",
|
|
47
|
+
"eslint-plugin-typescript-sort-keys": "^3.3.0",
|
|
48
|
+
"jest": "^29.7.0",
|
|
49
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
50
|
+
"microbundle": "^0.15.1",
|
|
51
|
+
"prettier": "^3.5.3",
|
|
52
|
+
"react": "^18.0.0",
|
|
53
|
+
"react-dom": "^18.0.0",
|
|
54
|
+
"ts-jest": "^29.3.1",
|
|
55
|
+
"ts-loader": "^9.5.2",
|
|
56
|
+
"ts-node": "^10.9.2",
|
|
57
|
+
"typescript": "^5.8.2"
|
|
58
|
+
},
|
|
59
|
+
"peerDependencies": {
|
|
60
|
+
"react": "^18.0.0",
|
|
61
|
+
"react-dom": "^18.0.0"
|
|
62
|
+
}
|
|
63
|
+
}
|