@uxland/primary-shell 7.29.0 → 7.29.2

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxland/primary-shell",
3
- "version": "7.29.0",
3
+ "version": "7.29.2",
4
4
  "description": "Primaria Shell",
5
5
  "author": "UXLand <dev@uxland.es>",
6
6
  "homepage": "https://github.com/uxland/harmonix/tree/app#readme",
@@ -41,10 +41,10 @@ export const renderNavigationTooltip = (text: string, itemAbsoluteY: number) =>
41
41
  tooltip.itemAbsoluteY = itemAbsoluteY;
42
42
  document.body.appendChild(tooltip);
43
43
 
44
- // Auto-remove after 5 seconds
44
+ // Auto-remove after 3 seconds
45
45
  setTimeout(() => {
46
46
  if (tooltip && document.body.contains(tooltip)) {
47
47
  tooltip.remove();
48
48
  }
49
- }, 5000);
49
+ }, 2500);
50
50
  };
@@ -170,21 +170,6 @@ export const registerDoctorCommunicationMenuActions = () => {
170
170
  });
171
171
  },
172
172
  },
173
- {
174
- id: "2",
175
- sortHint: "0020",
176
- icon: "open_in_new",
177
- label: "eConsulta",
178
- callbackFn: async () => {
179
- const CIP = await getPatientCip(shellApi);
180
- const visiId = (await shellApi.broker.send(new GetVisitId())) as string;
181
-
182
- shellApi.ecapEventManager.publish("NAVEGACIO_ECAP_ECONSULTA", "NO_TANCAR", {
183
- CIP: CIP || "",
184
- VisiID: visiId || "",
185
- });
186
- },
187
- },
188
173
  {
189
174
  id: "3",
190
175
  icon: "open_in_new",
@@ -53,11 +53,10 @@ describe("PdfViewerManager", () => {
53
53
  expect(manager.getPdfs()).toHaveLength(0);
54
54
  });
55
55
 
56
- it("should add a valid pdf and notify success", () => {
56
+ it("should add a valid pdf and publish event", () => {
57
57
  manager.add("Doc1", { url: "https://test.com/doc1.pdf" });
58
58
 
59
59
  expect(manager.getPdfs()).toHaveLength(1);
60
- expect(notificationService.success).toHaveBeenCalledWith("pdfManager.uploaded");
61
60
  expect(broker.publish).toHaveBeenCalledWith(pdfViwerEvents.added, {
62
61
  id: "generated-id",
63
62
  pdfName: "Doc1",
@@ -61,8 +61,6 @@ export class PdfViewerManager {
61
61
  this.pdfs.push(pdf as IPdfDocument);
62
62
  this.broker.publish(pdfViwerEvents.added, pdf);
63
63
 
64
- this.notificationService.success(translate("pdfManager.uploaded"));
65
-
66
64
  // Show tooltip to guide user to the PDF viewer
67
65
  setTimeout(() => {
68
66
  const navItemKey = `${primariaShellId}::${pdfViewerId}`;