-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING CHANGE: @toverux/ngx-sweetalert2 -> @sweetalert2/ngx-sweetal…
…ert2 BREAKING CHANGE: @toverux/ngx-sweetalert2 -> @sweetalert2/ngx-sweetalert2
- Loading branch information
Limon Monte
committed
Mar 23, 2019
1 parent
241d76c
commit ff5f39b
Showing
7 changed files
with
28 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"name": "@toverux/ngx-sweetalert2", | ||
"name": "@sweetalert2/ngx-sweetalert2", | ||
"version": "0.0.0-semantic-released", | ||
"description": "SweetAlert2 integration for Angular 4+", | ||
"repository": "[email protected]:sweetalert2/ngx-sweetalert2.git", | ||
|
@@ -9,7 +9,7 @@ | |
"@angular/core": "^5.0.0 || ^6.0.0 || ^7.0.0", | ||
"@angular/common": "^5.0.0 || ^6.0.0 || ^7.0.0", | ||
"rxjs": "^6.1.0", | ||
"sweetalert2": "^7.15.1" | ||
"sweetalert2": "^8.5.0" | ||
}, | ||
"ngPackage": { | ||
"$schema": "./node_modules/ng-packagr/ng-package.schema.json", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,20 @@ | ||
import swal from 'sweetalert2'; | ||
import Swal from 'sweetalert2'; | ||
|
||
/** | ||
* Represents an object of targets for <swal> partials (use with *swalPartial directive). | ||
* We must use thunks to access the swal.* functions listed below, because they get created after the first modal is | ||
* We must use thunks to access the Swal.* functions listed below, because they get created after the first modal is | ||
* shown, so this object lets us reference those functions safely and in a statically-typed manner. | ||
*/ | ||
export class SwalPartialTargets { | ||
public readonly title = () => swal.getTitle(); | ||
public readonly title = () => Swal.getTitle(); | ||
|
||
public readonly content = () => swal.getContent(); | ||
public readonly content = () => Swal.getContent(); | ||
|
||
/** | ||
* @deprecated Will be removed in the next major version, please use {@link SwalPartialTargets#actions} instead. | ||
*/ | ||
public readonly buttonsWrapper = () => swal.getButtonsWrapper(); | ||
public readonly actions = () => Swal.getActions(); | ||
|
||
public readonly actions = () => swal.getActions(); | ||
public readonly confirmButton = () => Swal.getConfirmButton(); | ||
|
||
public readonly confirmButton = () => swal.getConfirmButton(); | ||
public readonly cancelButton = () => Swal.getCancelButton(); | ||
|
||
public readonly cancelButton = () => swal.getCancelButton(); | ||
|
||
public readonly footer = () => swal.getFooter(); | ||
public readonly footer = () => Swal.getFooter(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9083,10 +9083,10 @@ supports-color@^5.1.0, supports-color@^5.3.0, supports-color@^5.4.0, supports-co | |
dependencies: | ||
has-flag "^3.0.0" | ||
|
||
sweetalert2@^7.8.0: | ||
version "7.28.7" | ||
resolved "https://registry.yarnpkg.com/sweetalert2/-/sweetalert2-7.28.7.tgz#69a138f1e47b091fb0c310c47feeb123fcea14ca" | ||
integrity sha512-gl+/201OeRJbGbor7GBM5pP6f8VUkAM1qxusNCQ9VmTMFtFHVUUntPctcNbGWh2r0vlsexO40u7ry5KIvQ5IGA== | ||
sweetalert2@^8.5.0: | ||
version "8.5.0" | ||
resolved "https://registry.yarnpkg.com/sweetalert2/-/sweetalert2-8.5.0.tgz#453ee0b3dd4ab5b8d89b1588c48ea90d74b16d63" | ||
integrity sha512-cvGitYfnutaRIWuLJ+p+eLXieJyodWpB9F8AtD6Y5uNWN5OcQD1dDwN7VPDo4U7y4ni3rgK9gDYmkz9RCf4PSA== | ||
|
||
[email protected], symbol-observable@^1.2.0: | ||
version "1.2.0" | ||
|