Skip to content

Commit e521d75

Browse files
WYSIWYG Email Editor (#598)
* Added initial files for emil-editor from v0. Published alpha versions to test the package * Added index.css and README * shadcn components * email-editor is fully stand-alone * WIP: Email Editor styles added * Removed workspace deps * pnpm update * Added license and updated readme * Changet GH action branch * Added a test changeset * Pull current branch, not latest tag * Upgraded husky and removed test hook * Ignored a package * Added .npmrc to gitignore * Added cherry-picked changes * Remove dep install * chore: update versions (#595) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Reverted dep removal * Switched to main branch * Exported rendering HTML function from the email-editor package; * Publishing email-editor * chore: update versions (#596) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Polished the types and remove unnecessary props * Refactored contexts away * Email editor integrated in dedicated editing page * WIP: Fixing email sending with new editor * WIP: Email editor used in broadcast, sequence and product drip mails * Fixed email editor usage across broadcast, sequence and drip functionality * Auto save email filter on input field blur * Timed auto-save badge * lint fixes * migration for wysiwyg email editor * Improve sequences lists * Fixed drip email creation * Unpublished product's page redirects to notFound * Removed feature branch from github action * CodeQL fixes * Updated docs --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 7b8407e commit e521d75

File tree

184 files changed

+9209
-4142
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

184 files changed

+9209
-4142
lines changed

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "public",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": [
11+
"@courselit/web",
12+
"@courselit/state-management",
13+
"@courselit/utils",
14+
"@courselit/queue",
15+
"@courselit/icons",
16+
"@courselit/components-library",
17+
"tsconfig",
18+
"tailwind-config",
19+
"@courselit/page-blocks",
20+
"@courselit/text-editor",
21+
"@courselit/common-logic",
22+
"@courselit/page-primitives",
23+
"@courselit/common-models",
24+
"@courselit/docs"
25+
]
26+
}

.github/workflows/publish-docker-images.yaml

Lines changed: 0 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -6,60 +6,7 @@ on:
66
- '*'
77

88
jobs:
9-
# publish-packages:
10-
# runs-on: ubuntu-latest
11-
# steps:
12-
# - name: checkout
13-
# uses: actions/checkout@v1
14-
15-
# - name: Configure CI Git User
16-
# run: |
17-
# git config --global user.name 'Rajat Saxena'
18-
# git config --global user.email 'hi@sub.rajatsaxena.dev'
19-
# git remote set-url origin https://$GITHUB_ACTOR:$GITHUB_PAT@github.com/codelitdev/courselit
20-
# env:
21-
# GITHUB_PAT: ${{ secrets.PAT }}
22-
23-
# - name: Checkout and pull branch
24-
# run: |
25-
# LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)
26-
# git checkout $LATEST_TAG
27-
28-
# - name: Setup pnpm
29-
# uses: pnpm/action-setup@v2
30-
# with:
31-
# version: 8
32-
33-
# - name: Install Packages
34-
# run: pnpm install
35-
36-
# - name: Authenticate with Registry
37-
# run: |
38-
# echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
39-
# pnpm whoami
40-
# env:
41-
# NPM_TOKEN: ${{ secrets.NPM }}
42-
43-
# - name: Build packages
44-
# run: |
45-
# pnpm --filter @courselit/icons build
46-
# pnpm --filter @courselit/common-models build
47-
# pnpm --filter @courselit/utils build
48-
# pnpm --filter @courselit/text-editor build
49-
# pnpm --filter @courselit/state-management build
50-
# pnpm --filter @courselit/components-library build
51-
# pnpm --filter @courselit/common-widgets build
52-
53-
# - name: Publish package
54-
# run: |
55-
# pnpm publish
56-
# env:
57-
# GH_TOKEN: ${{ secrets.PAT }}
58-
# GITHUB_TOKEN: ${{ secrets.PAT }}
59-
# NPM_TOKEN: ${{ secrets.NPM }}
60-
619
publish-docker-images:
62-
# needs: publish-packages
6310
runs-on: ubuntu-latest
6411
steps:
6512
- name: checkout
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Publish NPM packages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags-ignore:
8+
- '**'
9+
10+
concurrency: ${{ github.workflow }}-${{ github.ref }}
11+
12+
env:
13+
CI: true
14+
15+
jobs:
16+
publish-packages:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: checkout
20+
uses: actions/checkout@v1
21+
22+
- name: Configure CI Git User
23+
run: |
24+
git config --global user.name 'Rajat Saxena'
25+
git config --global user.email 'hi@sub.rajatsaxena.dev'
26+
git remote set-url origin https://$GITHUB_ACTOR:$GITHUB_PAT@github.com/codelitdev/courselit
27+
env:
28+
GITHUB_PAT: ${{ secrets.PAT }}
29+
30+
- name: Checkout and pull branch
31+
run: |
32+
git checkout ${{ github.ref_name }}
33+
git pull origin ${{ github.ref_name }}
34+
35+
- name: Setup pnpm
36+
uses: pnpm/action-setup@v2
37+
with:
38+
version: 8
39+
40+
- name: Install Packages
41+
run: pnpm install
42+
43+
- name: Authenticate with Registry
44+
run: |
45+
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
46+
pnpm whoami
47+
env:
48+
NPM_TOKEN: ${{ secrets.NPM }}
49+
50+
- name: Create and publish versions
51+
id: changesets
52+
uses: changesets/action@v1
53+
with:
54+
commit: "chore: update versions"
55+
title: "chore: update versions"
56+
publish: pnpm ci:publish
57+
env:
58+
GITHUB_TOKEN: ${{ secrets.PAT }}
59+
NPM_TOKEN: ${{ secrets.NPM }}
60+
61+
- name: Echo changeset output
62+
run: echo "${{ steps.changesets.outputs.hasChangesets }}"

.github/workflows/test.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
run: |
1818
pnpm --filter @courselit/icons build
1919
pnpm --filter @courselit/page-models build
20+
pnpm --filter @courselit/email-editor build
2021
pnpm --filter @courselit/common-models build
2122
pnpm --filter @courselit/utils build
2223
pnpm --filter @courselit/text-editor build

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,6 @@ report*.json
3737
.DS_Store
3838

3939
# Dev tools files
40-
.eslintcache
40+
.eslintcache
41+
42+
.npmrc

.husky/pre-commit

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
pnpm exec lint-staged
5-
pnpm test
4+
pnpm exec lint-staged
-303 KB
Binary file not shown.
84.6 KB
Loading
72.3 KB
Loading

0 commit comments

Comments
 (0)