From 6196cfe1b1ba6b76bbc341eefed06fa23ac644df Mon Sep 17 00:00:00 2001 From: Alexandre Caron Date: Thu, 21 Sep 2023 15:18:54 -0400 Subject: [PATCH] fix(InteractiveTour): add Placement types from @floating-ui --- package-lock.json | 45 ++++++++++--------- package.json | 1 + packages/common/package.json | 1 + .../interactive-tour.interface.ts | 4 +- 4 files changed, 28 insertions(+), 23 deletions(-) diff --git a/package-lock.json b/package-lock.json index 468794740e..21799f6a70 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", @@ -27950,7 +27951,7 @@ }, "packages/auth": { "name": "@igo2/auth", - "version": "1.15.4", + "version": "16.0.0-rc.0", "license": "MIT", "dependencies": { "jwt-decode": "^2.2.0", @@ -27969,14 +27970,14 @@ "@angular/material": "^16.2.4", "@angular/router": "^16.2.5", "@azure/msal-angular": "^3.0.4", - "@igo2/core": "^1.15.4", - "@igo2/utils": "^1.15.4", + "@igo2/core": "^16.0.0-rc.0", + "@igo2/utils": "^16.0.0-rc.0", "rxjs": "^7.5.6" } }, "packages/common": { "name": "@igo2/common", - "version": "1.15.4", + "version": "16.0.0-rc.0", "license": "MIT", "dependencies": { "tslib": "^2.6.0" @@ -27989,8 +27990,8 @@ "@angular/core": "^16.2.5", "@angular/material": "^16.2.4", "@angular/platform-browser": "^16.2.5", - "@igo2/core": "^1.15.4", - "@igo2/utils": "^1.15.4", + "@igo2/core": "^16.0.0-rc.0", + "@igo2/utils": "^16.0.0-rc.0", "angular-shepherd": "16.0.0", "scroll-into-view-if-needed": "^3.0.0", "tinycolor2": "^1.6.0", @@ -27999,7 +28000,7 @@ }, "packages/context": { "name": "@igo2/context", - "version": "1.15.4", + "version": "16.0.0-rc.0", "license": "MIT", "dependencies": { "tslib": "^2.6.0" @@ -28014,18 +28015,18 @@ "@angular/forms": "^16.2.5", "@angular/material": "^16.2.4", "@angular/platform-browser": "^16.2.5", - "@igo2/auth": "^1.15.4", - "@igo2/common": "^1.15.4", - "@igo2/core": "^1.15.4", - "@igo2/geo": "^1.15.4", - "@igo2/utils": "^1.15.4", + "@igo2/auth": "^16.0.0-rc.0", + "@igo2/common": "^16.0.0-rc.0", + "@igo2/core": "^16.0.0-rc.0", + "@igo2/geo": "^16.0.0-rc.0", + "@igo2/utils": "^16.0.0-rc.0", "ol": "^8.1.0", "rxjs": "^7.8.0" } }, "packages/core": { "name": "@igo2/core", - "version": "1.15.4", + "version": "16.0.0-rc.0", "license": "MIT", "dependencies": { "@ngx-translate/core": "^15.0.0", @@ -28040,7 +28041,7 @@ "@angular/core": "^16.2.5", "@angular/platform-browser": "^16.2.5", "@angular/router": "^16.2.5", - "@igo2/utils": "^1.15.4", + "@igo2/utils": "^16.0.0-rc.0", "ngx-indexed-db": "^11.0.2", "ngx-toastr": "^17.0.0", "rxjs": "^7.8.0" @@ -28048,7 +28049,7 @@ }, "packages/geo": { "name": "@igo2/geo", - "version": "1.15.4", + "version": "16.0.0-rc.0", "license": "MIT", "dependencies": { "@turf/helpers": "^6.5.0", @@ -28077,9 +28078,9 @@ "@angular/forms": "^16.2.5", "@angular/material": "^16.2.4", "@angular/platform-browser": "^16.2.5", - "@igo2/common": "^1.15.4", - "@igo2/core": "^1.15.4", - "@igo2/utils": "^1.15.4", + "@igo2/common": "^16.0.0-rc.0", + "@igo2/core": "^16.0.0-rc.0", + "@igo2/utils": "^16.0.0-rc.0", "@mat-datetimepicker/core": "~12.0.0", "flexsearch": "0.7.21", "ngx-indexed-db": "^11.0.2", @@ -28092,7 +28093,7 @@ }, "packages/integration": { "name": "@igo2/integration", - "version": "1.15.4", + "version": "16.0.0-rc.0", "license": "MIT", "dependencies": { "tslib": "^2.6.0" @@ -28103,8 +28104,8 @@ "peerDependencies": { "@angular/common": "^16.2.5", "@angular/core": "^16.2.5", - "@igo2/context": "1.15.4", - "@igo2/geo": "1.15.4", + "@igo2/context": "16.0.0-rc.0", + "@igo2/geo": "16.0.0-rc.0", "jspdf": "^2.5.1", "jspdf-autotable": "^3.5.29", "rxjs": "^7.8.0" @@ -28112,7 +28113,7 @@ }, "packages/utils": { "name": "@igo2/utils", - "version": "1.15.4", + "version": "16.0.0-rc.0", "license": "MIT", "dependencies": { "bowser": "^2.10.0", diff --git a/package.json b/package.json index 074227b8e4..997cb77f4e 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;