Skip to content

Commit 3bd5950

Browse files
committed
chore: new socials services
1 parent 8aaa1cd commit 3bd5950

File tree

9 files changed

+107
-71
lines changed

9 files changed

+107
-71
lines changed

CHANGELOG.md

+18-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,22 @@
11
# CHANGELOG
22

3-
**Unpublished:**
4-
- Introduced CHANGELOG
5-
- npm package updates
3+
**v0.1.0-alpha.2:**
4+
- Introduced `CHANGELOG.md`
5+
- npm updates
6+
- Introduced new services as [social icons](examples/confirm_email/index.js):
7+
- `Service.Phone` (converts into a link with `tel:` prefix)
8+
- `Service.Facebook`
9+
- `Service.YouTube`
10+
- `Service.Instagram`
11+
- `Service.LinkedIn`
12+
- `Service.Slack`
13+
- `Service.Discord`
14+
- `Service.TikTok`
15+
- `Service.Snapchat`
16+
- `Service.Threads`
17+
- `Service.Telegram`
18+
- **Breaking Changes:**
19+
- Renamed `Service.Github` to `Service.GitHub`
620

7-
**v0.1.0-alpha.0:**
21+
**v0.1.0-alpha.1:**
822
- Initial implementation

dist/bundle.cjs.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/bundle.esm.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/bundle.umd.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/components/socials.d.ts

+12-1
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,20 @@ import { ComponentId } from '../common';
22
export declare enum Service {
33
Website = "WEBSITE",
44
Email = "EMAIL",
5+
Phone = "PHONE",
6+
Facebook = "FACEBOOK",
7+
YouTube = "YOUTUBE",
58
Twitter = "TWITTER",
69
X = "X",
7-
Github = "GITHUB"
10+
GitHub = "GITHUB",
11+
Instagram = "INSTAGRAM",
12+
LinkedIn = "LINKEDIN",
13+
Slack = "SLACK",
14+
Discord = "DISCORD",
15+
TikTok = "TIKTOK",
16+
Snapchat = "SNAPCHAT",
17+
Threads = "THREADS",
18+
Telegram = "TELEGRAM"
819
}
920
export declare class Item {
1021
service: Service;

examples/confirm_email/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const sendEmail = async () => {
2828
const footer = Footer.builder()
2929
.socials([
3030
new SocialItem(Service.Twitter, 'ExampleApp'),
31-
new SocialItem(Service.Github, 'ExampleApp'),
31+
new SocialItem(Service.GitHub, 'ExampleApp'),
3232
])
3333
.link('Unsubscribe', 'https://example.com/unsubscribe?id=123')
3434
.build()

package-lock.json

+56-56
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "templateless-js",
3-
"version": "0.1.0-alpha.1",
3+
"version": "0.1.0-alpha.2",
44
"description": "Ship faster by sending elegant emails using just code",
55
"author": "",
66
"keywords": [
@@ -58,7 +58,7 @@
5858
"eslint-plugin-prettier": "5.1.3",
5959
"jest": "29.7.0",
6060
"prettier": "3.2.5",
61-
"rollup": "4.10.0",
61+
"rollup": "4.11.0",
6262
"ts-jest": "29.1.2",
6363
"tslib": "2.6.2",
6464
"typescript": "5.3.3"

src/components/socials.ts

+12-1
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,20 @@ import { ComponentId } from '../common'
33
export enum Service {
44
Website = 'WEBSITE',
55
Email = 'EMAIL',
6+
Phone = 'PHONE',
7+
Facebook = 'FACEBOOK',
8+
YouTube = 'YOUTUBE',
69
Twitter = 'TWITTER',
710
X = 'X',
8-
Github = 'GITHUB',
11+
GitHub = 'GITHUB',
12+
Instagram = 'INSTAGRAM',
13+
LinkedIn = 'LINKEDIN',
14+
Slack = 'SLACK',
15+
Discord = 'DISCORD',
16+
TikTok = 'TIKTOK',
17+
Snapchat = 'SNAPCHAT',
18+
Threads = 'THREADS',
19+
Telegram = 'TELEGRAM',
920
}
1021

1122
export class Item {

0 commit comments

Comments
 (0)