From 44b3d4ac88a23a83bc4704dde03a563230b90c53 Mon Sep 17 00:00:00 2001 From: alecarn <133774929+alecarn@users.noreply.github.com> Date: Thu, 21 Sep 2023 15:55:54 -0400 Subject: [PATCH] fix(InteractiveTour): add Placement types from @floating-ui (#1407) * fix(InteractiveTour): add Placement types from @floating-ui --- package-lock.json | 1 + package.json | 1 + packages/common/package.json | 1 + .../src/lib/interactive-tour/interactive-tour.interface.ts | 4 +++- 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index 42b5b52067..91a9d9cd4a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23,6 +23,7 @@ "@angular/platform-browser-dynamic": "^16.2.5", "@angular/router": "^16.2.5", "@azure/msal-angular": "^3.0.4", + "@floating-ui/utils": "^0.1.4", "@mat-datetimepicker/core": "~12.0.0", "@mdi/angular-material": "^7.2.96", "@ngx-translate/core": "^15.0.0", diff --git a/package.json b/package.json index 7e47650aef..5d1614cd35 100644 --- a/package.json +++ b/package.json @@ -101,6 +101,7 @@ "@angular/platform-browser-dynamic": "^16.2.5", "@angular/router": "^16.2.5", "@azure/msal-angular": "^3.0.4", + "@floating-ui/utils": "^0.1.4", "@mat-datetimepicker/core": "~12.0.0", "@mdi/angular-material": "^7.2.96", "@ngx-translate/core": "^15.0.0", diff --git a/packages/common/package.json b/packages/common/package.json index 6dc206c82b..7187c25af2 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -26,6 +26,7 @@ "@angular/core": "^16.2.5", "@angular/material": "^16.2.4", "@angular/platform-browser": "^16.2.5", + "@floating-ui/utils": "^0.1.4", "@igo2/core": "^16.0.0-rc.0", "@igo2/utils": "^16.0.0-rc.0", "angular-shepherd": "16.0.0", diff --git a/packages/common/src/lib/interactive-tour/interactive-tour.interface.ts b/packages/common/src/lib/interactive-tour/interactive-tour.interface.ts index 97ef2c3e78..d75198aa7f 100644 --- a/packages/common/src/lib/interactive-tour/interactive-tour.interface.ts +++ b/packages/common/src/lib/interactive-tour/interactive-tour.interface.ts @@ -1,6 +1,8 @@ +import { Placement } from '@floating-ui/utils'; + export interface InteractiveTourStep { element?: string; - position?: string; + position?: Placement; title?: string; text: string; beforeShow?: InteractiveTourAction;