@blackbelt-technology/pi-dashboard-web-access-plugin 0.10.0 → 0.11.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/package.json CHANGED
@@ -1,7 +1,10 @@
1
1
  {
2
2
  "name": "@blackbelt-technology/pi-dashboard-web-access-plugin",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "description": "Dashboard rendering for the pi-web-access extension — compact, safe chat cards for web-search-results custom entries (search, fetch).",
5
+ "keywords": [
6
+ "pi-dashboard-plugin"
7
+ ],
5
8
  "license": "MIT",
6
9
  "publishConfig": {
7
10
  "access": "public"
@@ -53,8 +56,8 @@
53
56
  "react-dom": ">=18.0.0"
54
57
  },
55
58
  "dependencies": {
56
- "@blackbelt-technology/dashboard-plugin-runtime": "^0.10.0",
57
- "@blackbelt-technology/pi-dashboard-shared": "^0.10.0",
59
+ "@blackbelt-technology/dashboard-plugin-runtime": "^0.11.0",
60
+ "@blackbelt-technology/pi-dashboard-shared": "^0.11.0",
58
61
  "@mdi/js": "^7.4.47",
59
62
  "@mdi/react": "^1.6.1"
60
63
  },
@@ -19,7 +19,7 @@
19
19
  *
20
20
  * See changes: render-unclaimed-custom-entries, retro-ux-chat-rendering.
21
21
  */
22
- import { useT } from "@blackbelt-technology/dashboard-plugin-runtime";
22
+ import { SafeLink, useT } from "@blackbelt-technology/dashboard-plugin-runtime";
23
23
  import type { CustomEntryRendererProps } from "@blackbelt-technology/pi-dashboard-shared/dashboard-plugin/slot-props.js";
24
24
  import {
25
25
  mdiAlertCircleOutline,
@@ -71,7 +71,7 @@ function payloadAsText(payload: unknown): string {
71
71
  function UrlText({ raw, t }: { raw: string; t: T }) {
72
72
  const href = safeHttpUrl(raw);
73
73
  return href ? (
74
- <a
74
+ <SafeLink
75
75
  href={href}
76
76
  target="_blank"
77
77
  rel="noopener noreferrer"
@@ -80,7 +80,7 @@ function UrlText({ raw, t }: { raw: string; t: T }) {
80
80
  <span>{raw}</span>
81
81
  <Icon path={mdiOpenInNew} size={0.5} aria-hidden="true" className="ml-0.5 inline-block align-baseline" />
82
82
  <span className="sr-only">{t("opensInNewTab", undefined, " (opens in a new tab)")}</span>
83
- </a>
83
+ </SafeLink>
84
84
  ) : (
85
85
  <span className="break-all text-[12px]">{raw}</span>
86
86
  );