flicker-alerts 1.0.53 → 1.0.54

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.
Files changed (3) hide show
  1. package/index.html +6 -6
  2. package/package.json +2 -2
  3. package/readme.md +7 -7
package/index.html CHANGED
@@ -187,7 +187,7 @@
187
187
  Com o <code>FlickerAlerts</code> instalado, importe-o no seu componente Angular e utilize-o conforme mostrado abaixo:
188
188
  </p>
189
189
  <pre><code>
190
- <strong class="text-import">import FlickerAlerts from 'flicker-alerts';</strong>
190
+ <strong class="text-import">import FlickerAlerts, { FlickerModals } from 'flicker-alerts';</strong>
191
191
 
192
192
  export class AppComponent {
193
193
  showAlert() {
@@ -212,7 +212,7 @@
212
212
  Com o <code>FlickerAlerts</code> instalado, você pode usá-lo no seu componente React assim:
213
213
  </p>
214
214
  <pre><code>
215
- <strong class="text-import">import FlickerAlerts from 'flicker-alerts';</strong>
215
+ <strong class="text-import">import FlickerAlerts, { FlickerModals } from 'flicker-alerts';</strong>
216
216
 
217
217
  const showAlert = () => {
218
218
  FlickerAlerts.showAlert({
@@ -236,11 +236,11 @@
236
236
 
237
237
  <h4>Uso no Angular</h4>
238
238
  <pre><code>
239
- <strong class="text-import">import FlickerAlerts from 'flicker-alerts';</strong>
239
+ <strong class="text-import">import FlickerAlerts, { FlickerModals } from 'flicker-alerts';</strong>
240
240
 
241
241
  export class AppComponent {
242
242
  showModal() {
243
- FlickerAlerts.showModal({
243
+ FlickerModals.showModal({
244
244
  type: 'warning', <strong class="text-comment">// Tipos: 'warning', 'delete'</strong>
245
245
  title: 'Título do Modal',
246
246
  message: 'Mensagem personalizada para o modal.',
@@ -256,10 +256,10 @@
256
256
  Com o <code>FlickerAlerts</code> instalado, você pode usá-lo no seu componente React assim:
257
257
  </p>
258
258
  <pre><code>
259
- <strong class="text-import">import FlickerAlerts from 'flicker-alerts';</strong>
259
+ <strong class="text-import">import FlickerAlerts, { FlickerModals } from 'flicker-alerts';</strong>
260
260
 
261
261
  const showModal = () => {
262
- FlickerAlerts.showModal({
262
+ FlickerModals.showModal({
263
263
  type: 'delete', <strong class="text-comment">// Tipos: 'warning', 'delete'</strong>
264
264
  title: 'Título do Modal',
265
265
  message: 'Mensagem personalizada para o modal.',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flicker-alerts",
3
- "version": "1.0.53",
3
+ "version": "1.0.54",
4
4
  "description": "Biblioteca para alertas animados",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -16,6 +16,6 @@
16
16
  "author": "https://www.linkedin.com/in/bruno-carneiro-9a53aa190/",
17
17
  "license": "MIT",
18
18
  "dependencies": {
19
- "flicker-alerts": "^1.0.53"
19
+ "flicker-alerts": "^1.0.54"
20
20
  }
21
21
  }
package/readme.md CHANGED
@@ -42,7 +42,7 @@ Após a instalação, a biblioteca será importada no seu código, e você não
42
42
  Com o **FlickerAlerts** instalado, importe-o no seu componente Angular e utilize-o conforme mostrado abaixo:
43
43
 
44
44
  ```typescript
45
- import FlickerAlerts from 'flicker-alerts';
45
+ import FlickerAlerts, { FlickerModals } from 'flicker-alerts';
46
46
 
47
47
  export class AppComponent {
48
48
  showAlert() {
@@ -72,9 +72,9 @@ Abra o arquivo angular.json, e no campo styles dentro de angular.json, adicione
72
72
  Com o **FlickerAlerts** instalado, você pode usá-lo no seu componente React assim:
73
73
 
74
74
  ```javascript
75
- import FlickerAlerts from 'flicker-alerts';
75
+ import FlickerAlerts, { FlickerModals } from 'flicker-alerts';
76
76
 
77
- import FlickerAlerts from 'flicker-alerts';
77
+ import FlickerAlerts, { FlickerModals } from 'flicker-alerts';
78
78
 
79
79
  const showAlert = () => {
80
80
  FlickerAlerts.showAlert({
@@ -95,11 +95,11 @@ import FlickerAlerts from 'flicker-alerts';
95
95
  Com o **FlickerAlerts** instalado, você pode usá-lo no seu componente React assim:
96
96
 
97
97
  ```javascript
98
- import FlickerAlerts from 'flicker-alerts';
98
+ import FlickerAlerts, { FlickerModals } from 'flicker-alerts';
99
99
 
100
100
  export class AppComponent {
101
101
  showModal() {
102
- FlickerAlerts.showModal({
102
+ FlickerModals.showModal({
103
103
  type: 'warning', // Tipos: 'warning', 'delete'
104
104
  title: 'Título do Modal',
105
105
  message: 'Mensagem personalizada para o modal.',
@@ -117,10 +117,10 @@ import FlickerAlerts from 'flicker-alerts';
117
117
  Com o **FlickerAlerts** instalado, você pode usá-lo no seu componente React assim:
118
118
 
119
119
  ```javascript
120
- import FlickerAlerts from 'flicker-alerts';
120
+ import FlickerAlerts, { FlickerModals } from 'flicker-alerts';
121
121
 
122
122
  const showModal = () => {
123
- FlickerAlerts.showModal({
123
+ FlickerModals.showModal({
124
124
  type: 'delete', // Tipos: 'warning', 'delete'
125
125
  title: 'Título do Modal',
126
126
  message: 'Mensagem personalizada para o modal.',