@adhese/sdk-devtools 0.4.0 → 0.5.1
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/dist/cjs/devtools.js +6 -6
- package/dist/cjs/devtools.js.map +1 -1
- package/dist/es/devtools.js +6 -6
- package/dist/es/devtools.js.map +1 -1
- package/dist/index.d.ts +57 -76
- package/dist/style.css +13 -4
- package/package.json +3 -3
package/dist/es/devtools.js
CHANGED
|
@@ -1229,7 +1229,7 @@ function SlotsTable({ adheseContext }) {
|
|
|
1229
1229
|
};
|
|
1230
1230
|
}, []);
|
|
1231
1231
|
const formattedSlots = useMemo(() => slots.map((slot) => {
|
|
1232
|
-
const ad = slot.
|
|
1232
|
+
const ad = slot.ad.value;
|
|
1233
1233
|
const iframe = slot.getElement();
|
|
1234
1234
|
let status = "unloaded";
|
|
1235
1235
|
if (iframe)
|
|
@@ -1238,10 +1238,10 @@ function SlotsTable({ adheseContext }) {
|
|
|
1238
1238
|
status = "loaded";
|
|
1239
1239
|
return {
|
|
1240
1240
|
...slot,
|
|
1241
|
-
name: slot.
|
|
1241
|
+
name: slot.name.value,
|
|
1242
1242
|
ad,
|
|
1243
1243
|
status,
|
|
1244
|
-
format: slot.
|
|
1244
|
+
format: slot.format.value,
|
|
1245
1245
|
iframe,
|
|
1246
1246
|
parameters: Array.from(slot.parameters.entries())
|
|
1247
1247
|
};
|
|
@@ -1254,7 +1254,7 @@ function SlotsTable({ adheseContext }) {
|
|
|
1254
1254
|
const origins = useMemo(() => {
|
|
1255
1255
|
const set = /* @__PURE__ */ new Set();
|
|
1256
1256
|
for (const slot of formattedSlots) {
|
|
1257
|
-
const ad = slot
|
|
1257
|
+
const { ad } = slot;
|
|
1258
1258
|
if (ad)
|
|
1259
1259
|
set.add(ad.origin);
|
|
1260
1260
|
}
|
|
@@ -1349,8 +1349,8 @@ function SlotsTable({ adheseContext }) {
|
|
|
1349
1349
|
) : "-" }),
|
|
1350
1350
|
/* @__PURE__ */ jsxRuntimeExports.jsx(TableCell, { children: (ad == null ? void 0 : ad.id) ?? "-" }),
|
|
1351
1351
|
/* @__PURE__ */ jsxRuntimeExports.jsx(TableCell, { children: (ad == null ? void 0 : ad.ext) ? /* @__PURE__ */ jsxRuntimeExports.jsx(Badge, { variant: "outline", children: ad.ext }) : "-" }),
|
|
1352
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(TableCell, { children: isViewabilityTracked
|
|
1353
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(TableCell, { children: isImpressionTracked
|
|
1352
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(TableCell, { children: isViewabilityTracked.value ? /* @__PURE__ */ jsxRuntimeExports.jsx(Badge, { className: "bg-green-100 text-green-900 hover:bg-green-100", children: "Yes" }) : /* @__PURE__ */ jsxRuntimeExports.jsx(Badge, { variant: "secondary", children: "No" }) }),
|
|
1353
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(TableCell, { children: isImpressionTracked.value ? /* @__PURE__ */ jsxRuntimeExports.jsx(Badge, { className: "bg-green-100 text-green-900 hover:bg-green-100", children: "Yes" }) : /* @__PURE__ */ jsxRuntimeExports.jsx(Badge, { variant: "secondary", children: "No" }) }),
|
|
1354
1354
|
/* @__PURE__ */ jsxRuntimeExports.jsx(TableCell, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1355
1355
|
Button,
|
|
1356
1356
|
{
|