Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support context #207

Open
wants to merge 229 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
229 commits
Select commit Hold shift + click to select a range
b37fb3f
feat(api): accept a params object, a swal function, or nothing (#5)
zenflow Mar 2, 2018
03cf58f
docs(license): add LICENSE file
zenflow Mar 2, 2018
00e8f4a
docs(readme): add license badge
zenflow Mar 2, 2018
9e64775
fix(module): Include dist folder in package and use main.bundle.js as…
zenflow Mar 2, 2018
ab0da5b
fix(package): Add empty .npmignore to allow publishing dist dir
zenflow Mar 2, 2018
c0954d2
0.1.3
zenflow Mar 2, 2018
d29cd70
fix(ci): Commit version bump in CI
zenflow Mar 5, 2018
cece723
0.1.4
zenflow Mar 5, 2018
b018eeb
fix(ci): Add necessary dependency on @semantic-release/git
zenflow Mar 5, 2018
c08827c
0.1.5
zenflow Mar 5, 2018
bc2862a
fix(ci): Upgrade `semantic-release` and `@semantic-release/git` packages
zenflow Mar 5, 2018
64d1fc9
chore(release): 0.1.6 [skip ci]
semantic-release-bot Mar 5, 2018
57fc9a5
chore(ci): Use shorter/simpler message for release commits
zenflow Mar 5, 2018
58067cb
chore(ci): Use @semantic-release/github in publish phase
zenflow Mar 5, 2018
2d08869
feat(integration): Integrate change from sweetalert2/sweetalert2#992
zenflow Mar 5, 2018
a52214b
chore(sandbox): Organize and set some globals for convenience
zenflow Mar 5, 2018
1b59552
chore(ci): Configure tarballDir for post-mortem debugging
zenflow Mar 5, 2018
e50923a
chore(ci): Print some info after the release script runs
zenflow Mar 5, 2018
38d73f6
chore(release): 0.2.0 [skip ci]
semantic-release-bot Mar 5, 2018
7875096
fix(ci): publish dist folder to npm, and clean up from failed attempts
zenflow Mar 5, 2018
b577a41
chore(release): 0.2.1 [skip ci]
semantic-release-bot Mar 5, 2018
7abb499
chore(ci): don't bother specifying `tarballDir` for `@semantic-releas…
zenflow Mar 7, 2018
f27622d
chore(package): "zenflow/sweetalert2-react-content" -> "sweetalert2/s…
zenflow Mar 7, 2018
5d77c4c
docs(readme): Fix typo in the code snippet in README (#8)
limonte Mar 7, 2018
3bc6620
chore(package): Enable Greenkeeper 🌴 (#10)
greenkeeper[bot] Mar 7, 2018
aa807d0
test(shorthand): Make sure the `html` argument can be a React element…
zenflow Mar 7, 2018
178082f
test(shorthand): Extract `getVisibleSwalIconNames` helper from test
zenflow Mar 7, 2018
102298b
test(shorthand): Make sure the `type` arg is respected when other arg…
zenflow Mar 7, 2018
951b3fa
chore(ci): Add changelog generation
zenflow Mar 7, 2018
76bc9b5
chore(ci): Make sure the job fails if the build or release fails
zenflow Mar 7, 2018
f9d7f14
chore(sandbox): Inline `setGlobals` function in `main.js`
zenflow Mar 7, 2018
f101444
fix(api): Don't accept an options object, YAGNI (#11)
zenflow Mar 7, 2018
29afef7
chore(release): 0.2.2 [skip ci]
semantic-release-bot Mar 7, 2018
1063416
fix(build): Fix webpack externals config to use correct package names…
zenflow Mar 7, 2018
400aac9
chore(release): 0.2.3 [skip ci]
semantic-release-bot Mar 7, 2018
e96722f
refactor(tests): Tidy up test files organization
zenflow Mar 8, 2018
3046970
refactor(build): make webpack configs more uniform
zenflow Mar 8, 2018
5cea0c0
feat(package): improve filenames
zenflow Mar 8, 2018
af47116
feat(package): use es modules
zenflow Mar 8, 2018
18ed0d7
chore(package): publish src files and use for "module" field
zenflow Mar 8, 2018
ea5e86f
chore(release): 0.3.0 [skip ci]
semantic-release-bot Mar 8, 2018
4fb31c8
fix(package): exclude eslint configuration from published package
zenflow Mar 8, 2018
08118d6
chore(release): 0.3.1 [skip ci]
semantic-release-bot Mar 8, 2018
8e98938
feat(package): include a variety of module formats, minified and non-…
zenflow Mar 13, 2018
c386eaf
fix(package): fix "homepage" and "bugs" fields
zenflow Mar 13, 2018
a86c803
chore(package): use full/explicit entry for "repository" field
zenflow Mar 13, 2018
3f3037b
chore(release): 0.4.0 [skip ci]
semantic-release-bot Mar 13, 2018
529060e
refactor(linting): change inline eslint config in release.config.js
zenflow Mar 14, 2018
5273f55
chore(linting): replace manual application of eslint-config-zenflow w…
zenflow Mar 14, 2018
deec9c7
chore(package): upgrade zenflow-build-js-lib dep to first major
zenflow Mar 17, 2018
5053043
chore(repo): add .gitattributes to deal with line endings on Windows
zenflow Mar 17, 2018
7a81dc4
chore(ci): update travis config to use build stages
zenflow Mar 18, 2018
63f65bd
chore(package): update zenflow-lint-js to version 2.0.0 (#20)
greenkeeper[bot] Mar 18, 2018
ab7bf86
docs(readme): make semantic-release badge link to CHANGELOG.md
zenflow Mar 18, 2018
5d2204e
feat(typescript): add TypeScript type definitions (#15)
toverux Mar 19, 2018
3b6e14b
chore(release): 0.5.0 [skip ci]
semantic-release-bot Mar 19, 2018
a461f93
chore(ci): only run release stage if on master *and it's a push* (#22)
zenflow Mar 19, 2018
4780d21
chore(travis): google-chrome: latest -> chrome: stable (#24)
limonte Mar 20, 2018
e171e39
chore(package): update karma-webpack to version 3.0.0
greenkeeper[bot] Mar 19, 2018
bee171d
chore(package): update zenflow-build-js-lib to version 2.0.1
greenkeeper[bot] Mar 24, 2018
4231d0c
docs(*): reduce package descriptions to a single one, replace "decora…
zenflow Mar 27, 2018
b661367
feat(api): integrate changes from sweetalert2/sweetalert2#1036
zenflow Mar 27, 2018
a331c59
fix(api): be a normal enhancer, require the Swal argument (no default)
zenflow Mar 27, 2018
daef570
chore(release): 1.0.0 [skip ci]
semantic-release-bot Mar 27, 2018
b93b3ef
tests(*): switch from karma + jasmine + more packages to Jest
zenflow Mar 27, 2018
b43529e
docs(readme): fixes to readme
zenflow Mar 30, 2018
70dc47b
chore(travis): do no send emails about successful builds (#32)
limonte Apr 23, 2018
09ea5e7
chore(readme): add installation guide (#31)
limonte Apr 23, 2018
b270d6b
Update README.md
limonte May 21, 2018
973b68b
fix(typescript): replace Diff type with new built-in Exclude type (#43)
limonte Jun 18, 2018
bf9a46c
chore(release): 1.0.1 [skip ci]
semantic-release-bot Jun 18, 2018
4f3ec44
test(config): set testURL to localhost (#55)
limonte Jul 28, 2018
9f31cce
chore(package): update dependencies (#62)
greenkeeper[bot] Oct 18, 2018
504d149
chore(readme): specify the sweetalert2 version
limonte Jan 28, 2019
580398a
chore(build): Replace zenflow-build-js-lib with rollup and upgrade ba…
zenflow Feb 20, 2019
a30f59b
fix(banner): fix version number in banner comment, closes #48 (#74)
zenflow Feb 20, 2019
45ef311
chore(release): 1.0.2 [skip ci]
semantic-release-bot Feb 20, 2019
8d25da1
chore(package): do not use package-lock.json (#75)
zenflow Feb 20, 2019
0cc506e
chore(semantic-release): restore use of release-notes-generator (#76)
zenflow Feb 20, 2019
915e624
fix(changelog): add missing changelog entry for v1.0.2 (#77)
zenflow Feb 20, 2019
794353c
chore(release): 1.0.3 [skip ci]
semantic-release-bot Feb 20, 2019
f891fbd
chore(package): Upgrade Jest to v24 (#81)
zenflow Mar 11, 2019
2f76df9
chore(package): update sweetalert2 to version 8.2.2
greenkeeper[bot] Feb 20, 2019
0764f74
test(util): Integrate sweetalert2 v8 breaking changes
zenflow Feb 20, 2019
a39a635
feat(package): add `^8.2.2` to version range for sweetalert2 peer dep
zenflow Feb 20, 2019
e1d5767
Revert "chore(readme): specify the sweetalert2 version"
limonte Jan 28, 2019
e442747
feat(update-method): throw error when swal.update() is called
zenflow Feb 22, 2019
a8e9356
chore: bump sweetalert2 to ^8.3.0
limonte Mar 11, 2019
188a6e9
chore(release): 1.1.0 [skip ci]
semantic-release-bot Mar 23, 2019
0ccf378
chore: add yarn.lock
limonte Mar 23, 2019
4227f53
chore(travis): use Yarn instead of npm (#87)
limonte Apr 7, 2019
498f1d5
chore(package): Update rollup-plugin-commonjs to the latest version 🚀…
greenkeeper[bot] May 15, 2019
4999563
chore(package): update rollup-plugin-node-resolve to the latest versi…
greenkeeper[bot] May 15, 2019
2650ff1
bump dev-deps
limonte May 31, 2019
972e4c5
Update rollup-plugin-terser to the latest version 🚀 (#93)
greenkeeper[bot] Jul 2, 2019
7958059
chore: bump dev-deps
limonte Jul 13, 2019
38acb59
Init GitHub Actions 🎉
limonte Oct 16, 2019
ebb8053
chore(ci): get rid of Travis CI
limonte Oct 16, 2019
70fc8d7
chore(ci): fix coveralls action
limonte Oct 16, 2019
519bcd8
BREAKING CHANGE: sweetalert2 v9
limonte Nov 5, 2019
8ed3cdf
chore(release): 2.0.0 [skip ci]
semantic-release-bot Nov 5, 2019
2d5a8d5
chore: update npm badge, badge.fury.io seems to have issues with cach…
limonte Nov 5, 2019
1fcc7f1
chore: add ability to skip ci build
limonte Nov 5, 2019
0faa318
chore(ci): run release only from push events on master branch
limonte Nov 5, 2019
3101894
fix(dom): mount html content inside element used for html content (#58)
zenflow Nov 7, 2019
b96ed0a
chore(release): 2.0.1 [skip ci]
semantic-release-bot Nov 7, 2019
8a0211e
chore: do not use deprecated animation param
limonte Nov 8, 2019
280c02d
remove semantic-release packages from devDependencies
limonte Nov 8, 2019
5c04177
chore: use eslint for linting JS and TS
limonte Nov 8, 2019
4362bdc
fix: call super method /w given arg when extending onOpen & onClose (…
zenflow Nov 8, 2019
1ea457a
chore(release): 2.0.2 [skip ci]
semantic-release-bot Nov 8, 2019
af5120d
chore: lint d.ts
limonte Nov 11, 2019
84c3a3b
chore(ci): install semantic-release globally
limonte Nov 13, 2019
4287a94
chore: bump yarn.lock
limonte Nov 13, 2019
9cb195a
chore: use Swal.getHtmlContainer() (#103)
limonte Nov 23, 2019
3b9328f
bump yarn.lock
limonte Dec 17, 2019
ec05a41
ignore eslint issues
limonte Dec 17, 2019
2061d64
BREAKING CHANGE: fix: Unmount React content only once popup is destro…
zenflow Jan 27, 2020
fcc75d5
chore(release): 3.0.0 [skip ci]
semantic-release-bot Jan 27, 2020
c592b0c
fix: unmountComponentAtNode(...): Target container is not a DOM eleme…
Feb 20, 2020
1c1d19f
chore(release): 3.0.1 [skip ci]
semantic-release-bot Feb 20, 2020
1d9544e
Update rollup to the latest version 🚀 (#109)
greenkeeper[bot] Mar 6, 2020
7df53c5
chore: bump dev-deps
limonte Mar 17, 2020
65e29e9
chore(readme): remove Greenkeeper badge (#111)
greenkeeper[bot] Mar 24, 2020
54c679f
chore: remove skip job, it's not needed anymore [skip ci]
limonte May 11, 2020
d989ead
chore: bump dev-deps
limonte Jul 12, 2020
f08301d
fix: remove useRejections (#118)
limonte Jul 12, 2020
1ff9cce
chore(release): 3.0.2 [skip ci]
semantic-release-bot Jul 12, 2020
757ab23
fix: update typescript declaration file for TS 3.9.5 (#119)
limonte Jul 12, 2020
be5cbe5
chore(release): 3.0.3 [skip ci]
semantic-release-bot Jul 12, 2020
ca88cf4
feat: add closeButtonHtml mount (#121)
limonte Sep 2, 2020
8d4f1f1
chore(release): 3.1.0 [skip ci]
semantic-release-bot Sep 2, 2020
824a1b5
docs: Add closeButtonHtml to list of options that can be React elemen…
zenflow Sep 2, 2020
0fcfee7
feat: add denyButtonText mount, support SweetAlert2 v10 🚀 (#124)
limonte Sep 8, 2020
d330760
chore(release): 3.2.0 [skip ci]
semantic-release-bot Sep 8, 2020
ce0f62d
fix: use didOpen and didDestroy instead of deprecated onOpen and onDe…
limonte Oct 13, 2020
32bdced
chore(release): 3.2.1 [skip ci]
semantic-release-bot Oct 13, 2020
c725d20
Create dependabot.yml
limonte Oct 15, 2020
fb704bb
chore(deps-dev): bump @babel/plugin-transform-runtime (#129)
dependabot[bot] Oct 15, 2020
a434528
chore(deps-dev): bump @babel/runtime from 7.11.2 to 7.12.0 (#130)
dependabot[bot] Oct 15, 2020
9e50669
chore(deps-dev): bump sweetalert2 from 10.3.7 to 10.5.1 (#132)
dependabot[bot] Oct 15, 2020
3fc4bde
chore(deps-dev): bump jest from 26.5.2 to 26.5.3 (#131)
dependabot[bot] Oct 15, 2020
10f3f45
chore(deps-dev): bump rollup from 2.29.0 to 2.30.0 (#128)
dependabot[bot] Oct 15, 2020
7d375a0
chore(deps-dev): bump @babel/preset-env from 7.11.5 to 7.12.0 (#133)
dependabot[bot] Oct 15, 2020
eae22cc
chore(deps-dev): bump react from 16.13.1 to 16.14.0 (#135)
dependabot[bot] Oct 15, 2020
b012f23
chore(deps-dev): bump @types/react from 16.9.51 to 16.9.52 (#136)
dependabot[bot] Oct 15, 2020
66a0012
chore(deps-dev): bump @babel/core from 7.11.6 to 7.12.0 (#134)
dependabot[bot] Oct 15, 2020
a72b879
chore(deps-dev): bump sweetalert2 from 10.5.1 to 10.6.1 (#138)
dependabot[bot] Oct 19, 2020
5cd1d5e
Delete dependabot.yml
limonte Oct 19, 2020
16981ab
fix: support React 17 (#142)
limonte Nov 27, 2020
9974fe8
chore(release): 3.2.2 [skip ci]
semantic-release-bot Nov 27, 2020
85205ac
chore: bump yarn.lock
limonte Dec 21, 2020
8dd92fa
feat: add iconHtml mount (#147)
limonte Feb 12, 2021
71ac77d
chore(release): 3.3.0 [skip ci]
semantic-release-bot Feb 12, 2021
6487182
Update sweetalert2 to version 10.15.1 (#150)
depfu[bot] Feb 17, 2021
c9cd1e9
chore: upd sweetalert2 dependency (#151)
limonte Feb 18, 2021
328fcbb
fix: improve DX with types (#148)
limonte Feb 18, 2021
bdb60b8
chore(release): 3.3.1 [skip ci]
semantic-release-bot Feb 18, 2021
e5495e6
Update all Yarn dependencies (2021-03-01) (#154)
depfu[bot] Mar 1, 2021
3ee49f2
Update all Yarn dependencies (2021-03-08) (#155)
depfu[bot] Mar 8, 2021
66b4716
Update all Yarn dependencies (2021-03-15) (#156)
depfu[bot] Mar 15, 2021
013bc9c
Update all Yarn dependencies (2021-03-22) (#157)
depfu[bot] Mar 22, 2021
9b37747
Update all Yarn dependencies (2021-03-29) (#158)
depfu[bot] Mar 29, 2021
6f38a7b
Update all Yarn dependencies (2021-04-05) (#159)
depfu[bot] Apr 5, 2021
2abf0e0
Update all Yarn dependencies (2021-04-12) (#160)
depfu[bot] Apr 12, 2021
146e0ff
Update all Yarn dependencies (2021-04-19) (#161)
depfu[bot] Apr 19, 2021
c2e4d76
fix: passing react elements via .mixin (#153)
zenflow Apr 20, 2021
cff3efb
chore(release): 3.3.2 [skip ci]
semantic-release-bot Apr 20, 2021
176abb3
Update all Yarn dependencies (2021-04-26) (#163)
depfu[bot] Apr 26, 2021
8a8ab28
Update all Yarn dependencies (2021-05-03) (#164)
depfu[bot] May 3, 2021
87350d0
fix: support sweetalert2@v11
limonte May 16, 2021
3c02f70
chore(release): 3.3.3 [skip ci]
semantic-release-bot May 16, 2021
e5a0e6b
BREAKING CHANGE: Drop IE11 and legacy Edge support (#166)
limonte May 17, 2021
b4b94d5
chore(release): 4.0.0 [skip ci]
semantic-release-bot May 17, 2021
a736204
fix: drop legacy hooks
limonte May 19, 2021
d874bb6
chore(release): 4.0.1 [skip ci]
semantic-release-bot May 19, 2021
d8b8947
chore(deps): bump ws from 7.4.5 to 7.4.6 (#167)
dependabot[bot] May 29, 2021
c89c18a
Update all Yarn dependencies (2021-05-31) (#168)
depfu[bot] May 31, 2021
ca07c1f
feat: add loaderHtml support (#170)
limonte Jun 20, 2021
d0ee0dc
chore(release): 4.1.0 [skip ci]
semantic-release-bot Jun 20, 2021
4de2536
Update all Yarn dependencies (2021-06-28) (#171)
depfu[bot] Jun 28, 2021
2a35c97
fix(types): add missing types for .mixin() (#173)
Nichon4 Jul 22, 2021
ff4c318
chore(release): 4.1.1 [skip ci]
semantic-release-bot Jul 22, 2021
2acfede
Update all Yarn dependencies (2021-07-26) (#174)
depfu[bot] Jul 26, 2021
8a23d0c
chore(deps): bump path-parse from 1.0.6 to 1.0.7 (#175)
dependabot[bot] Aug 11, 2021
404f7ee
Update all Yarn dependencies (2021-08-23) (#176)
depfu[bot] Aug 23, 2021
4062107
Update all Yarn dependencies (2021-09-20) (#177)
depfu[bot] Sep 20, 2021
81627e5
chore(deps): bump tmpl from 1.0.4 to 1.0.5 (#178)
dependabot[bot] Sep 21, 2021
f91c096
Update all Yarn dependencies (2021-10-18) (#180)
depfu[bot] Oct 18, 2021
e9ce05c
feat: support .update() method (#179)
limonte Oct 18, 2021
031b954
chore(release): 4.2.0 [skip ci]
semantic-release-bot Oct 18, 2021
07c00b3
chore: bump deps
limonte Oct 18, 2021
9bc432d
Update all Yarn dependencies (2021-11-15) (#184)
depfu[bot] Nov 15, 2021
79df979
Update all Yarn dependencies (2021-12-13) (#185)
depfu[bot] Dec 13, 2021
e14e619
chore: use @rollup/plugin-... packages instead of deprecated ones
limonte Dec 28, 2021
0ce78d0
Update all Yarn dependencies (2022-01-10) (#186)
depfu[bot] Jan 10, 2022
75f6ba2
chore: use prettier
limonte Jan 17, 2022
5a8a69e
chore: update @sweetalert2/eslint-config
limonte Jan 22, 2022
da2fef6
chore: use '@typescript-eslint/consistent-type-imports' rule
limonte Jan 23, 2022
4e3e684
Update all Yarn dependencies (2022-02-07) (#187)
depfu[bot] Feb 7, 2022
d4bfecc
Update all Yarn dependencies (2022-03-07) (#188)
depfu[bot] Mar 7, 2022
13a6d32
Update all Yarn dependencies (2022-04-04) (#190)
depfu[bot] Apr 4, 2022
978586a
BREAKING CHANGE: React 18 🎉 (#189)
limonte Apr 12, 2022
df92c9c
chore(release): 5.0.0 [skip ci]
semantic-release-bot Apr 12, 2022
4a13caa
chore: rename master to main
limonte Apr 26, 2022
6602c8f
Update all Yarn dependencies (2022-05-02) (#193)
depfu[bot] May 2, 2022
3845726
Update all Yarn dependencies (2022-05-30) (#196)
depfu[bot] May 30, 2022
7a1ff4c
Update all Yarn dependencies (2022-06-27) (#202)
depfu[bot] Jun 27, 2022
734daa4
fix: pass process.env.NODE_ENV=production to rollup build config
limonte Jun 28, 2022
1fb6f9f
chore(release): 5.0.1 [skip ci]
semantic-release-bot Jun 28, 2022
2840e40
chore: add docs about React Router (#201)
GreenAsJade Jun 29, 2022
aa8d14b
chore(deps): bump terser from 5.12.1 to 5.14.2 (#203)
dependabot[bot] Jul 21, 2022
4ce9ca9
fix: use react-dom/client in rollup config (#205)
limonte Jul 22, 2022
10e1630
chore(release): 5.0.2 [skip ci]
semantic-release-bot Jul 22, 2022
df23452
Update all Yarn dependencies (2022-07-25) (#206)
depfu[bot] Jul 25, 2022
68fc652
Support context
omerman Aug 3, 2022
bb338ff
fix context impl
omerman Aug 3, 2022
fab0080
Attempt to add portal behavior so context will not be explicitly supp…
omerman Aug 4, 2022
eef454b
5.0.3
omerman Aug 4, 2022
25f8e4e
Attempt 2
omerman Aug 4, 2022
b9ac86f
5.0.4
omerman Aug 4, 2022
cd12939
Attempt 3
omerman Aug 4, 2022
589b4f0
5.0.5
omerman Aug 4, 2022
7086478
Attempt 4
omerman Aug 4, 2022
be06393
5.0.6
omerman Aug 4, 2022
35db2ee
remove trace of omerman clone repo
omerman Aug 4, 2022
7abaea8
remove context usage
omerman Aug 4, 2022
ae1c996
remove unused code
omerman Aug 4, 2022
a498cd1
No need for useMemo
omerman Aug 4, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
{
"presets": [
["env", {}],
["react"]
]
["@babel/preset-env", {
"targets": {
"chrome": "88",
"firefox": "86",
"safari": "12"
}
}],
["@babel/preset-react"]
],
"env": {
"test": {
"plugins": ["@babel/plugin-transform-runtime"]
}
}
}
8 changes: 5 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
insert_final_newline = true

# zenflow-config-end
11 changes: 11 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = {
extends: ['@sweetalert2/eslint-config', 'plugin:react/recommended'],
settings: {
react: {
version: 'detect',
},
},
rules: {
'@typescript-eslint/no-explicit-any': 0,
},
}
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.js text eol=lf
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Run tests

on:
push:
branches:
- main
pull_request:

jobs:
build:
if: "!contains(github.event.commits[0].message, '[skip ci]')"
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Install npm dependencies
run: yarn install

- run: yarn lint

- run: yarn test

- run: yarn check-dts

- name: Run automated release process with semantic-release
if: github.event_name == 'push'
uses: cycjimmy/semantic-release-action@v2
with:
extra_plugins: |
@semantic-release/changelog
@semantic-release/git
@semantic-release/exec
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

# - name: Report coverage to coveralls.io
# uses: coverallsapp/github-action@main
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
3 changes: 3 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
...require('@sweetalert2/prettier-config'),
}
10 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

272 changes: 272 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,272 @@
## [5.0.2](https://github.com/sweetalert2/sweetalert2-react-content/compare/v5.0.1...v5.0.2) (2022-07-22)


### Bug Fixes

* use react-dom/client in rollup config ([#205](https://github.com/sweetalert2/sweetalert2-react-content/issues/205)) ([4ce9ca9](https://github.com/sweetalert2/sweetalert2-react-content/commit/4ce9ca9be2c4c355bbd88dfb93836ef360a8a812))

## [5.0.1](https://github.com/sweetalert2/sweetalert2-react-content/compare/v5.0.0...v5.0.1) (2022-06-28)


### Bug Fixes

* pass process.env.NODE_ENV=production to rollup build config ([734daa4](https://github.com/sweetalert2/sweetalert2-react-content/commit/734daa4e1439530c7971d100f0716aeffb8a5860))

# [5.0.0](https://github.com/sweetalert2/sweetalert2-react-content/compare/v4.2.0...v5.0.0) (2022-04-12)


* BREAKING CHANGE: React 18 🎉 (#189) ([978586a](https://github.com/sweetalert2/sweetalert2-react-content/commit/978586ad20850f8e1e995e0985a80a382d6b088b)), closes [#189](https://github.com/sweetalert2/sweetalert2-react-content/issues/189)


### BREAKING CHANGES

* React 18 🎉

# [4.2.0](https://github.com/sweetalert2/sweetalert2-react-content/compare/v4.1.1...v4.2.0) (2021-10-18)


### Features

* support .update() method ([#179](https://github.com/sweetalert2/sweetalert2-react-content/issues/179)) ([e9ce05c](https://github.com/sweetalert2/sweetalert2-react-content/commit/e9ce05cd5523b33220ec23caeae3bf95c912591b))

## [4.1.1](https://github.com/sweetalert2/sweetalert2-react-content/compare/v4.1.0...v4.1.1) (2021-07-22)


### Bug Fixes

* **types:** add missing types for .mixin() ([#173](https://github.com/sweetalert2/sweetalert2-react-content/issues/173)) ([2a35c97](https://github.com/sweetalert2/sweetalert2-react-content/commit/2a35c9792dc3b1ca73a8ad9047dd885acb01b2fd))

# [4.1.0](https://github.com/sweetalert2/sweetalert2-react-content/compare/v4.0.1...v4.1.0) (2021-06-20)


### Features

* add loaderHtml support ([#170](https://github.com/sweetalert2/sweetalert2-react-content/issues/170)) ([ca07c1f](https://github.com/sweetalert2/sweetalert2-react-content/commit/ca07c1f83116692731a4bfb062e983ac512276c5))

## [4.0.1](https://github.com/sweetalert2/sweetalert2-react-content/compare/v4.0.0...v4.0.1) (2021-05-19)


### Bug Fixes

* drop legacy hooks ([a736204](https://github.com/sweetalert2/sweetalert2-react-content/commit/a736204b6f7ed30c9079aa0187b1e46fac6bb9b8))

# [4.0.0](https://github.com/sweetalert2/sweetalert2-react-content/compare/v3.3.3...v4.0.0) (2021-05-17)


* BREAKING CHANGE: Drop IE11 and legacy Edge support (#166) ([e5a0e6b](https://github.com/sweetalert2/sweetalert2-react-content/commit/e5a0e6b68ae256d5f13d46a4f09a7e72ce3e7253)), closes [#166](https://github.com/sweetalert2/sweetalert2-react-content/issues/166)


### BREAKING CHANGES

* Drop IE11 and legacy Edge support

## [3.3.3](https://github.com/sweetalert2/sweetalert2-react-content/compare/v3.3.2...v3.3.3) (2021-05-16)


### Bug Fixes

* support sweetalert2@v11 ([87350d0](https://github.com/sweetalert2/sweetalert2-react-content/commit/87350d0009b00ccd0eff31fb407cfaaa30c25651))

## [3.3.2](https://github.com/sweetalert2/sweetalert2-react-content/compare/v3.3.1...v3.3.2) (2021-04-20)


### Bug Fixes

* passing react elements via .mixin ([#153](https://github.com/sweetalert2/sweetalert2-react-content/issues/153)) ([c2e4d76](https://github.com/sweetalert2/sweetalert2-react-content/commit/c2e4d76134a1b1d1f14c3f0b692f4d1306f609c7)), closes [#152](https://github.com/sweetalert2/sweetalert2-react-content/issues/152)

## [3.3.1](https://github.com/sweetalert2/sweetalert2-react-content/compare/v3.3.0...v3.3.1) (2021-02-18)


### Bug Fixes

* improve DX with types ([#148](https://github.com/sweetalert2/sweetalert2-react-content/issues/148)) ([328fcbb](https://github.com/sweetalert2/sweetalert2-react-content/commit/328fcbb9ac5fbc95b1155004732257ab61e6817f))

# [3.3.0](https://github.com/sweetalert2/sweetalert2-react-content/compare/v3.2.2...v3.3.0) (2021-02-12)


### Features

* add iconHtml mount ([#147](https://github.com/sweetalert2/sweetalert2-react-content/issues/147)) ([8dd92fa](https://github.com/sweetalert2/sweetalert2-react-content/commit/8dd92fa625d23e0ae693da32fe52829d217a4a39))

## [3.2.2](https://github.com/sweetalert2/sweetalert2-react-content/compare/v3.2.1...v3.2.2) (2020-11-27)


### Bug Fixes

* support React 17 ([#142](https://github.com/sweetalert2/sweetalert2-react-content/issues/142)) ([16981ab](https://github.com/sweetalert2/sweetalert2-react-content/commit/16981ab31cc91f3c3213a03c61cea93ac14e2fa5))

## [3.2.1](https://github.com/sweetalert2/sweetalert2-react-content/compare/v3.2.0...v3.2.1) (2020-10-13)


### Bug Fixes

* use didOpen and didDestroy instead of deprecated onOpen and onDestroy ([#126](https://github.com/sweetalert2/sweetalert2-react-content/issues/126)) ([ce0f62d](https://github.com/sweetalert2/sweetalert2-react-content/commit/ce0f62dd61d99b6afb00351b06cf0d2baeda3d04))

# [3.2.0](https://github.com/sweetalert2/sweetalert2-react-content/compare/v3.1.0...v3.2.0) (2020-09-08)


### Features

* add denyButtonText mount, support SweetAlert2 v10 🚀 ([#124](https://github.com/sweetalert2/sweetalert2-react-content/issues/124)) ([0fcfee7](https://github.com/sweetalert2/sweetalert2-react-content/commit/0fcfee7beb15859731a8c2700b3e9bd7bfad2694))

# [3.1.0](https://github.com/sweetalert2/sweetalert2-react-content/compare/v3.0.3...v3.1.0) (2020-09-02)


### Features

* add closeButtonHtml mount ([#121](https://github.com/sweetalert2/sweetalert2-react-content/issues/121)) ([ca88cf4](https://github.com/sweetalert2/sweetalert2-react-content/commit/ca88cf49a5a3c2e683eb9ed0fba8e01b5be94d6a))

## [3.0.3](https://github.com/sweetalert2/sweetalert2-react-content/compare/v3.0.2...v3.0.3) (2020-07-12)


### Bug Fixes

* update typescript declaration file for TS 3.9.5 ([#119](https://github.com/sweetalert2/sweetalert2-react-content/issues/119)) ([757ab23](https://github.com/sweetalert2/sweetalert2-react-content/commit/757ab237cb60fe076a848313058f3e5749ad66e8))

## [3.0.2](https://github.com/sweetalert2/sweetalert2-react-content/compare/v3.0.1...v3.0.2) (2020-07-12)


### Bug Fixes

* remove useRejections ([#118](https://github.com/sweetalert2/sweetalert2-react-content/issues/118)) ([f08301d](https://github.com/sweetalert2/sweetalert2-react-content/commit/f08301d2ab46ed81d1a96c738c897c9e010c7093))

## [3.0.1](https://github.com/sweetalert2/sweetalert2-react-content/compare/v3.0.0...v3.0.1) (2020-02-20)


### Bug Fixes

* unmountComponentAtNode(...): Target container is not a DOM elementd fyf ([#108](https://github.com/sweetalert2/sweetalert2-react-content/issues/108)) ([c592b0c](https://github.com/sweetalert2/sweetalert2-react-content/commit/c592b0c73c15554d30ae5e5ad36eb442ee647c02))

# [3.0.0](https://github.com/sweetalert2/sweetalert2-react-content/compare/v2.0.2...v3.0.0) (2020-01-27)


* BREAKING CHANGE: fix: Unmount React content only once popup is destroyed (#107) ([2061d64](https://github.com/sweetalert2/sweetalert2-react-content/commit/2061d6485346afb958f07a3c4f76c1f74d76c2fb)), closes [#107](https://github.com/sweetalert2/sweetalert2-react-content/issues/107)


### BREAKING CHANGES

* fix: Unmount React content only once popup is destroyed (#107)

## [2.0.2](https://github.com/sweetalert2/sweetalert2-react-content/compare/v2.0.1...v2.0.2) (2019-11-08)


### Bug Fixes

* call super method /w given arg when extending onOpen & onClose ([#101](https://github.com/sweetalert2/sweetalert2-react-content/issues/101)) ([4362bdc](https://github.com/sweetalert2/sweetalert2-react-content/commit/4362bdcc9e94758f3e12d41d3cb786c4988baa2d))

## [2.0.1](https://github.com/sweetalert2/sweetalert2-react-content/compare/v2.0.0...v2.0.1) (2019-11-07)


### Bug Fixes

* **dom:** mount html content inside element used for html content ([#58](https://github.com/sweetalert2/sweetalert2-react-content/issues/58)) ([3101894](https://github.com/sweetalert2/sweetalert2-react-content/commit/3101894feffa57153a88c4657a6ec738a212f75b))

# [2.0.0](https://github.com/sweetalert2/sweetalert2-react-content/compare/v1.1.0...v2.0.0) (2019-11-05)


* BREAKING CHANGE: sweetalert2 v9 ([519bcd8](https://github.com/sweetalert2/sweetalert2-react-content/commit/519bcd8da7fa86f7a692979484d5b23f94053518))


### BREAKING CHANGES

* sweetalert2 v9

# [1.1.0](https://github.com/sweetalert2/sweetalert2-react-content/compare/v1.0.3...v1.1.0) (2019-03-23)


### Features

* **package:** add `^8.2.2` to version range for sweetalert2 peer dep ([a39a635](https://github.com/sweetalert2/sweetalert2-react-content/commit/a39a635))
* **update-method:** throw error when swal.update() is called ([e442747](https://github.com/sweetalert2/sweetalert2-react-content/commit/e442747))

## [1.0.3](https://github.com/sweetalert2/sweetalert2-react-content/compare/v1.0.2...v1.0.3) (2019-02-20)


### Bug Fixes

* **changelog:** add missing changelog entry for v1.0.2 ([#77](https://github.com/sweetalert2/sweetalert2-react-content/issues/77)) ([915e624](https://github.com/sweetalert2/sweetalert2-react-content/commit/915e624))

## [1.0.2](https://github.com/sweetalert2/sweetalert2-react-content/compare/v1.0.1...v1.0.2) (2019-02-20)


### Bug Fixes

* **banner:** fix version number in banner comment, closes [#48](https://github.com/sweetalert2/sweetalert2-react-content/issues/48) ([#74](https://github.com/sweetalert2/sweetalert2-react-content/issues/74)) ([a30f59b](https://github.com/sweetalert2/sweetalert2-react-content/commit/))

## [1.0.1](https://github.com/sweetalert2/sweetalert2-react-content/compare/v1.0.0...v1.0.1) (2018-06-18)


### Bug Fixes

* **typescript:** replace Diff type with new built-in Exclude type ([#43](https://github.com/sweetalert2/sweetalert2-react-content/issues/43)) ([973b68b](https://github.com/sweetalert2/sweetalert2-react-content/commit/973b68b))

# [1.0.0](https://github.com/sweetalert2/sweetalert2-react-content/compare/v0.5.0...v1.0.0) (2018-03-27)


### Bug Fixes

* **api:** be a normal enhancer, require the Swal argument (no default) ([a331c59](https://github.com/sweetalert2/sweetalert2-react-content/commit/a331c59))


### Features

* **api:** integrate changes from sweetalert2/sweetalert2[#1036](https://github.com/sweetalert2/sweetalert2-react-content/issues/1036) ([b661367](https://github.com/sweetalert2/sweetalert2-react-content/commit/b661367))


### BREAKING CHANGES

* **api:** no default value for the `Swal` argument

<a name="0.5.0"></a>
# [0.5.0](https://github.com/sweetalert2/sweetalert2-react-content/compare/v0.4.0...v0.5.0) (2018-03-19)


### Features

* **typescript:** add TypeScript type definitions ([#15](https://github.com/sweetalert2/sweetalert2-react-content/issues/15)) ([5d2204e](https://github.com/sweetalert2/sweetalert2-react-content/commit/5d2204e))

<a name="0.4.0"></a>
# [0.4.0](https://github.com/sweetalert2/sweetalert2-react-content/compare/v0.3.1...v0.4.0) (2018-03-13)


### Bug Fixes

* **package:** fix "homepage" and "bugs" fields ([c386eaf](https://github.com/sweetalert2/sweetalert2-react-content/commit/c386eaf))


### Features

* **package:** include a variety of module formats, minified and non-minified, with sourcemaps ([#17](https://github.com/sweetalert2/sweetalert2-react-content/issues/17)) ([8e98938](https://github.com/sweetalert2/sweetalert2-react-content/commit/8e98938))

<a name="0.3.1"></a>
## [0.3.1](https://github.com/sweetalert2/sweetalert2-react-content/compare/v0.3.0...v0.3.1) (2018-03-08)


### Bug Fixes

* **package:** exclude eslint configuration from published package ([4fb31c8](https://github.com/sweetalert2/sweetalert2-react-content/commit/4fb31c8))

<a name="0.3.0"></a>
# [0.3.0](https://github.com/sweetalert2/sweetalert2-react-content/compare/v0.2.3...v0.3.0) (2018-03-08)


### Features

* **package:** improve filenames ([5cea0c0](https://github.com/sweetalert2/sweetalert2-react-content/commit/5cea0c0))
* **package:** use es modules ([af47116](https://github.com/sweetalert2/sweetalert2-react-content/commit/af47116))

<a name="0.2.3"></a>
## [0.2.3](https://github.com/sweetalert2/sweetalert2-react-content/compare/v0.2.2...v0.2.3) (2018-03-07)


### Bug Fixes

* **build:** Fix webpack externals config to use correct package names in CJS environments, closes [#9](https://github.com/sweetalert2/sweetalert2-react-content/issues/9) ([1063416](https://github.com/sweetalert2/sweetalert2-react-content/commit/1063416))

<a name="0.2.2"></a>
## [0.2.2](https://github.com/sweetalert2/sweetalert2-react-content/compare/v0.2.1...v0.2.2) (2018-03-07)


### Bug Fixes

* **api:** Don't accept an options object, YAGNI ([#11](https://github.com/sweetalert2/sweetalert2-react-content/issues/11)) ([f101444](https://github.com/sweetalert2/sweetalert2-react-content/commit/f101444))
Loading