From 2e97bc847f451be1ecc6a29b983e6577675b4d16 Mon Sep 17 00:00:00 2001 From: Vasilica Olariu Date: Thu, 18 Sep 2025 16:49:51 +0300 Subject: [PATCH] Remove userflow --- README.md | 8 - src/lib/components/LinksMenu.svelte | 2 +- src/lib/components/SubMenu.svelte | 2 +- src/lib/config/index.ts | 5 - .../functions/integrations/userflow-loader.js | 9 -- src/lib/functions/integrations/userflow.ts | 137 ------------------ .../components/NavigationBar.svelte | 3 +- src/main.ts | 8 +- types/src/lib/config/index.d.ts | 4 - .../integrations/userflow-loader.d.ts | 1 - .../lib/functions/integrations/userflow.d.ts | 25 ---- types/src/main.d.ts | 2 +- uni-nav.env.dev | 2 - uni-nav.env.prod | 2 - uni-nav.env.qa | 2 - 15 files changed, 5 insertions(+), 207 deletions(-) delete mode 100644 src/lib/functions/integrations/userflow-loader.js delete mode 100644 src/lib/functions/integrations/userflow.ts delete mode 100644 types/src/lib/functions/integrations/userflow-loader.d.ts delete mode 100644 types/src/lib/functions/integrations/userflow.d.ts diff --git a/README.md b/README.md index 12e3dc05..8f858c0b 100644 --- a/README.md +++ b/README.md @@ -296,7 +296,6 @@ Information regarding the changes will be disseminated to the owners of all prop | config.user | 'auto' | no | Instruct the uni-nav to auto-fetch user profile info based on the `tcjwt` cookie value | {} | | config.user | {photoURL, userId, initials, handle} | no | The logged in user | {} | | config.supportMeta | {challengeId, isSelfService} | no | Additional meta data to be sent along with any support ticket created by the user | | -| config.integrations | {userflow?: 'disable'} | no | Disable userflow integration | | ### User Model You can either pass user's details as described by the `AuthUser` interface, or pass a value of `auto` and uni-nav will automatically fetch user's details from the api based on the tcjwt auth cookie. @@ -326,13 +325,6 @@ After `init` is called, you should call only `update` for further updates. >**NOTE** Both methods accept the same config object as mentioned in the previous section [API for tcUniNav](#api-for-tcuninav). -### Custom Integrations - -#### Userflow -Userflow is used to display surveys and tips for the user. -You can manually trigger a predefined userflow content item by calling the method `triggerFlow` via uninav. Eg. `tcUniNav('triggerFlow', 'userflow-content-id', ...userflowArgs)`. - - ### Typescript Support Typescript type declarations (i.e. `*.d.ts`) can be sourced from the Github repo in the devDependencies of your package.json: diff --git a/src/lib/components/LinksMenu.svelte b/src/lib/components/LinksMenu.svelte index 280b34bb..ee13040f 100644 --- a/src/lib/components/LinksMenu.svelte +++ b/src/lib/components/LinksMenu.svelte @@ -4,7 +4,7 @@ import { classnames } from "lib/utils/classnames"; import { getPublicPath } from 'lib/utils/paths'; import SubMenu from "./SubMenu.svelte"; - import { NavigationHandler } from "../app-context/navigation-handler.model"; + import type { NavigationHandler } from "../app-context/navigation-handler.model"; const chevronDownIconUrl = getPublicPath(`/assets/ic-chevron-down.svg`); export let ref: Element | undefined = undefined; diff --git a/src/lib/components/SubMenu.svelte b/src/lib/components/SubMenu.svelte index ee896811..61b3b8fd 100644 --- a/src/lib/components/SubMenu.svelte +++ b/src/lib/components/SubMenu.svelte @@ -1,6 +1,6 @@