@agenus-io/recovery 0.0.4 → 0.0.6

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/CHANGELOG.md +69 -0
  2. package/README.md +44 -3
  3. package/package.json +4 -2
package/CHANGELOG.md ADDED
@@ -0,0 +1,69 @@
1
+ # Changelog
2
+
3
+ ## 0.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - adjustment in doc
8
+
9
+ ## 0.0.5
10
+
11
+ ### Patch Changes
12
+
13
+ - add doc
14
+
15
+ ## 0.0.4
16
+
17
+ ### Patch Changes
18
+
19
+ - adjustment in doc
20
+
21
+ ## 0.0.3
22
+
23
+ ### Patch Changes
24
+
25
+ - adjustment in doc
26
+
27
+ ## 0.0.2
28
+
29
+ ### Patch Changes
30
+
31
+ - 697de42: initial project
32
+
33
+ All notable changes to this project will be documented in this file.
34
+
35
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
36
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
37
+
38
+ ## [Unreleased]
39
+
40
+ ### Added
41
+
42
+ - Sistema de recuperação de abandono de formulários
43
+ - Detecção automática de interações do usuário
44
+ - Captura de dados de formulários abandonados
45
+ - Sistema de sessão persistente (localStorage + cookies)
46
+ - Fingerprint de dispositivo para identificação única
47
+ - Suporte a auto-inicialização via script tag
48
+ - Envio de eventos usando sendBeacon com fallback para fetch
49
+ - Sistema de changelog automatizado com Changesets
50
+
51
+ ### Changed
52
+
53
+ - Nenhuma mudança ainda
54
+
55
+ ### Deprecated
56
+
57
+ - Nenhuma depreciação ainda
58
+
59
+ ### Removed
60
+
61
+ - Nenhuma remoção ainda
62
+
63
+ ### Fixed
64
+
65
+ - Nenhuma correção ainda
66
+
67
+ ### Security
68
+
69
+ - Nenhuma mudança de segurança ainda
package/README.md CHANGED
@@ -33,10 +33,37 @@ yarn add @agenus-io/recovery
33
33
 
34
34
  ### Via CDN
35
35
 
36
+ #### Opção 1: unpkg (Recomendado)
37
+
36
38
  ```html
39
+ <!-- Versão mais recente -->
37
40
  <script src="https://unpkg.com/@agenus-io/recovery@latest/dist/index.global.js"></script>
41
+
42
+ <!-- Versão específica (recomendado para produção) -->
43
+ <script src="https://unpkg.com/@agenus-io/recovery@0.0.5/dist/index.global.js"></script>
44
+ ```
45
+
46
+ #### Opção 2: jsDelivr
47
+
48
+ ```html
49
+ <!-- Versão mais recente -->
50
+ <script src="https://cdn.jsdelivr.net/npm/@agenus-io/recovery@latest/dist/index.global.js"></script>
51
+
52
+ <!-- Versão específica (recomendado para produção) -->
53
+ <script src="https://cdn.jsdelivr.net/npm/@agenus-io/recovery@0.0.5/dist/index.global.js"></script>
38
54
  ```
39
55
 
56
+ #### Opção 3: esm.sh (ES Modules)
57
+
58
+ ```html
59
+ <script type="module">
60
+ import UpselyRecovery from 'https://esm.sh/@agenus-io/recovery@0.0.5';
61
+ // Use UpselyRecovery aqui
62
+ </script>
63
+ ```
64
+
65
+ **Nota**: Para produção, sempre use uma versão específica em vez de `@latest` para evitar quebras inesperadas.
66
+
40
67
  ## 📖 Uso
41
68
 
42
69
  ### Inicialização Manual
@@ -58,8 +85,9 @@ const recovery = new UpselyRecovery({
58
85
  <!DOCTYPE html>
59
86
  <html>
60
87
  <head>
88
+ <!-- CDN - Use versão específica em produção -->
61
89
  <script
62
- src="https://unpkg.com/@agenus-io/recovery@latest/dist/index.global.js"
90
+ src="https://unpkg.com/@agenus-io/recovery@0.0.5/dist/index.global.js"
63
91
  data-api-endpoint="https://sua-api.com/pixel/public/event"
64
92
  data-api-key="sua-chave-api"
65
93
  data-debug="true"
@@ -79,6 +107,17 @@ const recovery = new UpselyRecovery({
79
107
 
80
108
  O sistema será inicializado automaticamente e estará disponível em `window.upselyRecovery`.
81
109
 
110
+ ### URLs do CDN Disponíveis
111
+
112
+ | CDN | URL |
113
+ |-----|-----|
114
+ | **unpkg** (Recomendado) | `https://unpkg.com/@agenus-io/recovery@0.0.5/dist/index.global.js` |
115
+ | **jsDelivr** | `https://cdn.jsdelivr.net/npm/@agenus-io/recovery@0.0.5/dist/index.global.js` |
116
+ | **unpkg (latest)** | `https://unpkg.com/@agenus-io/recovery@latest/dist/index.global.js` ⚠️ |
117
+ | **jsDelivr (latest)** | `https://cdn.jsdelivr.net/npm/@agenus-io/recovery@latest/dist/index.global.js` ⚠️ |
118
+
119
+ ⚠️ **Atenção**: Use `@latest` apenas em desenvolvimento. Para produção, sempre use uma versão específica.
120
+
82
121
  ## 🔧 Configuração
83
122
 
84
123
  ### Interface de Configuração
@@ -326,7 +365,8 @@ recovery.destroyFormAbandonment();
326
365
  <button type="submit">Enviar</button>
327
366
  </form>
328
367
 
329
- <script src="https://unpkg.com/@agenus-io/recovery@latest/dist/index.global.js"></script>
368
+ <!-- Use versão específica em produção -->
369
+ <script src="https://unpkg.com/@agenus-io/recovery@0.0.5/dist/index.global.js"></script>
330
370
  <script>
331
371
  const recovery = new UpselyRecovery({
332
372
  apiEndpoint: 'https://sua-api.com/pixel/public/event',
@@ -361,7 +401,8 @@ recovery.destroyFormAbandonment();
361
401
  <button type="submit">Enviar</button>
362
402
  </form>
363
403
 
364
- <script src="https://unpkg.com/@agenus-io/recovery@latest/dist/index.global.js"></script>
404
+ <!-- Use versão específica em produção -->
405
+ <script src="https://unpkg.com/@agenus-io/recovery@0.0.5/dist/index.global.js"></script>
365
406
  <script>
366
407
  new UpselyRecovery({
367
408
  apiEndpoint: 'https://sua-api.com/pixel/public/event',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agenus-io/recovery",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "description": "Recuperação de leads para Upsely",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -16,7 +16,9 @@
16
16
  }
17
17
  },
18
18
  "files": [
19
- "dist"
19
+ "dist",
20
+ "README.md",
21
+ "CHANGELOG.md"
20
22
  ],
21
23
  "keywords": [
22
24
  "recovery",