@adhese/sdk 0.15.0 → 0.16.0
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/CHANGELOG.md +15 -0
- package/README.md +0 -1
- package/dist/index.cjs +348 -315
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +224 -219
- package/dist/index.js +349 -316
- package/dist/index.js.map +1 -1
- package/dist/{requestAds.schema-Cb8_FVMb.js → requestAds.schema-Bt7KDWqM.js} +4 -69
- package/dist/requestAds.schema-Bt7KDWqM.js.map +1 -0
- package/dist/requestAds.schema-DvERzWT3.cjs +104 -0
- package/dist/requestAds.schema-DvERzWT3.cjs.map +1 -0
- package/package.json +2 -2
- package/dist/requestAds.schema-Cb8_FVMb.js.map +0 -1
- package/dist/requestAds.schema-D3gd-oXt.cjs +0 -169
- package/dist/requestAds.schema-D3gd-oXt.cjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @adhese/sdk
|
|
2
2
|
|
|
3
|
+
## 0.16.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 4cb01f8: Move all slot callbacks to the setup function
|
|
8
|
+
- 4cb01f8: Expose cleanElement function to slot
|
|
9
|
+
- dfe44af: Add device field to Adhese instance that shows the current active device that is selected in by the query detector
|
|
10
|
+
- 4cb01f8: Add onBeforeRequest hook to slots
|
|
11
|
+
- 4cb01f8: Rename ad property to data to allow more generic data in slots
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [4cb01f8]
|
|
16
|
+
- @adhese/sdk-shared@0.5.0
|
|
17
|
+
|
|
3
18
|
## 0.15.0
|
|
4
19
|
|
|
5
20
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -81,7 +81,6 @@ The `createAdhese` function accepts the following options:
|
|
|
81
81
|
| `logUrl` | `boolean` | `true` | Will log the `location.href` to the Adhese API in a `BASE64` string with the `ur` parameter. |'
|
|
82
82
|
| `eagerRendering` | `boolean` | `false` | Will render the ad as soon as it is fetched. In general it is recommended to keep this `false` for better performance. |
|
|
83
83
|
| `queries` | `Record<string, string>` | `{mobile: '(max-width: 768px) and (pointer: coarse)',tablet: '(min-width: 769px) and (max-width: 1024px) and (pointer: coarse)',desktop: '(min-width: 1025px) and (pointer: fine)',}` | Will be used to determine the device type and screen size. The matching query key will be passed in the `dt` and `br` parameter. |
|
|
84
|
-
| `safeframe` | `boolean` | `false` | Enable Safeframe rendering. See [Safeframe usage](/safeframe) for details |
|
|
85
84
|
| `plugins` | `ReadonlyArray<(context: AdheseContext) => void>` | `[]` | The plugins that are used for the Adhese instance. These plugins are called with the Adhese context and run during the initialization of the Adhese instance. |
|
|
86
85
|
|
|
87
86
|
\* Required
|