@leadping/consent 1.0.2 → 1.0.3
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.
- package/README.md +4 -1
- package/dist/browser/package.json +1 -0
- package/dist/esm/package.json +1 -0
- package/package.json +15 -7
- /package/dist/{capture-rejected-error.d.ts → esm/capture-rejected-error.d.ts} +0 -0
- /package/dist/{capture-rejected-error.js → esm/capture-rejected-error.js} +0 -0
- /package/dist/{capture.d.ts → esm/capture.d.ts} +0 -0
- /package/dist/{capture.js → esm/capture.js} +0 -0
- /package/dist/{embed.d.ts → esm/embed.d.ts} +0 -0
- /package/dist/{embed.js → esm/embed.js} +0 -0
- /package/dist/{event-buffer.d.ts → esm/event-buffer.d.ts} +0 -0
- /package/dist/{event-buffer.js → esm/event-buffer.js} +0 -0
- /package/dist/{index.d.ts → esm/index.d.ts} +0 -0
- /package/dist/{index.js → esm/index.js} +0 -0
- /package/dist/{transport.d.ts → esm/transport.d.ts} +0 -0
- /package/dist/{transport.js → esm/transport.js} +0 -0
- /package/dist/{types.d.ts → esm/types.d.ts} +0 -0
- /package/dist/{types.js → esm/types.js} +0 -0
package/README.md
CHANGED
|
@@ -27,6 +27,8 @@ On submission the script finalizes recording, obtains a certificate, and display
|
|
|
27
27
|
|
|
28
28
|
Pin the URL to a published npm version. Use the classic script at `dist/leadping-consent.min.js`, not the ES module under `dist/browser`.
|
|
29
29
|
|
|
30
|
+
The package defaults to the regular browser script, including on jsDelivr and UNPKG. Applications that need the module API can explicitly import `ConsentCapture` from `@leadping/consent/esm`.
|
|
31
|
+
|
|
30
32
|
## Options and events
|
|
31
33
|
|
|
32
34
|
| Attribute | Purpose |
|
|
@@ -120,10 +122,11 @@ npm test
|
|
|
120
122
|
|
|
121
123
|
| Output | Purpose |
|
|
122
124
|
| --- | --- |
|
|
125
|
+
| `dist/leadping-consent.js` and `dist/leadping-consent.min.js` | Standalone scripts with automatic form attachment; the package and CDN defaults. |
|
|
123
126
|
| `dist/browser/leadping-consent.min.js` | Bundled browser capture SDK. |
|
|
124
127
|
| `dist/browser/*.map` | Browser source maps. |
|
|
125
128
|
| `dist/browser/*.LEGAL.txt` | Dependency license notices. |
|
|
126
|
-
| `dist/*.js` and `dist/*.d.ts` | ESM
|
|
129
|
+
| `dist/esm/*.js` and `dist/esm/*.d.ts` | Optional ESM API and TypeScript declarations, available through `@leadping/consent/esm`. |
|
|
127
130
|
|
|
128
131
|
The build also emits `dist/browser/index.js` for the consent service's existing SDK paths. This is bundled and minified as well.
|
|
129
132
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leadping/consent",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Leadping consent capture SDK for browser forms.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -10,15 +10,23 @@
|
|
|
10
10
|
"access": "public",
|
|
11
11
|
"registry": "https://registry.npmjs.org"
|
|
12
12
|
},
|
|
13
|
-
"
|
|
14
|
-
"
|
|
13
|
+
"main": "./dist/leadping-consent.js",
|
|
14
|
+
"jsdelivr": "./dist/leadping-consent.min.js",
|
|
15
|
+
"unpkg": "./dist/leadping-consent.min.js",
|
|
16
|
+
"sideEffects": [
|
|
17
|
+
"./dist/leadping-consent.js",
|
|
18
|
+
"./dist/leadping-consent.min.js"
|
|
19
|
+
],
|
|
15
20
|
"files": [
|
|
16
|
-
"dist"
|
|
21
|
+
"dist/leadping-consent*.js*",
|
|
22
|
+
"dist/esm",
|
|
23
|
+
"dist/browser"
|
|
17
24
|
],
|
|
18
25
|
"exports": {
|
|
19
|
-
".":
|
|
20
|
-
|
|
21
|
-
"
|
|
26
|
+
".": "./dist/leadping-consent.js",
|
|
27
|
+
"./esm": {
|
|
28
|
+
"types": "./dist/esm/index.d.ts",
|
|
29
|
+
"import": "./dist/esm/index.js"
|
|
22
30
|
}
|
|
23
31
|
},
|
|
24
32
|
"scripts": {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|