@adhese/sdk-devtools 0.4.0 → 0.5.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/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/cjs/devtools.js
CHANGED
|
@@ -1250,7 +1250,7 @@ function SlotsTable({ adheseContext }) {
|
|
|
1250
1250
|
};
|
|
1251
1251
|
}, []);
|
|
1252
1252
|
const formattedSlots = require$$0.useMemo(() => slots.map((slot) => {
|
|
1253
|
-
const ad = slot.
|
|
1253
|
+
const ad = slot.ad.value;
|
|
1254
1254
|
const iframe = slot.getElement();
|
|
1255
1255
|
let status = "unloaded";
|
|
1256
1256
|
if (iframe)
|
|
@@ -1259,10 +1259,10 @@ function SlotsTable({ adheseContext }) {
|
|
|
1259
1259
|
status = "loaded";
|
|
1260
1260
|
return {
|
|
1261
1261
|
...slot,
|
|
1262
|
-
name: slot.
|
|
1262
|
+
name: slot.name.value,
|
|
1263
1263
|
ad,
|
|
1264
1264
|
status,
|
|
1265
|
-
format: slot.
|
|
1265
|
+
format: slot.format.value,
|
|
1266
1266
|
iframe,
|
|
1267
1267
|
parameters: Array.from(slot.parameters.entries())
|
|
1268
1268
|
};
|
|
@@ -1275,7 +1275,7 @@ function SlotsTable({ adheseContext }) {
|
|
|
1275
1275
|
const origins = require$$0.useMemo(() => {
|
|
1276
1276
|
const set = /* @__PURE__ */ new Set();
|
|
1277
1277
|
for (const slot of formattedSlots) {
|
|
1278
|
-
const ad = slot
|
|
1278
|
+
const { ad } = slot;
|
|
1279
1279
|
if (ad)
|
|
1280
1280
|
set.add(ad.origin);
|
|
1281
1281
|
}
|
|
@@ -1370,8 +1370,8 @@ function SlotsTable({ adheseContext }) {
|
|
|
1370
1370
|
) : "-" }),
|
|
1371
1371
|
/* @__PURE__ */ jsxRuntimeExports.jsx(TableCell, { children: (ad == null ? void 0 : ad.id) ?? "-" }),
|
|
1372
1372
|
/* @__PURE__ */ jsxRuntimeExports.jsx(TableCell, { children: (ad == null ? void 0 : ad.ext) ? /* @__PURE__ */ jsxRuntimeExports.jsx(Badge, { variant: "outline", children: ad.ext }) : "-" }),
|
|
1373
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(TableCell, { children: isViewabilityTracked
|
|
1374
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(TableCell, { children: isImpressionTracked
|
|
1373
|
+
/* @__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" }) }),
|
|
1374
|
+
/* @__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" }) }),
|
|
1375
1375
|
/* @__PURE__ */ jsxRuntimeExports.jsx(TableCell, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1376
1376
|
Button,
|
|
1377
1377
|
{
|