@fluid-topics/ft-app-context 2.1.18 → 2.1.19

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.
@@ -1,6 +1,7 @@
1
1
  import { FtMessageContext, FtMetadataConfiguration, FtSession, FtUiLocale } from "@fluid-topics/public-api";
2
2
  export interface FtAppContextProperties {
3
3
  baseUrl?: string;
4
+ tenantId?: string;
4
5
  apiIntegrationIdentifier?: string;
5
6
  apiIntegrationAppVersion?: string;
6
7
  uiLocale?: string;
@@ -4,6 +4,7 @@ import { PayloadAction } from "@reduxjs/toolkit";
4
4
  export declare const FtAppInfoStoreName = "ft-app-info";
5
5
  export interface FtAppInfoState {
6
6
  baseUrl: Optional<string>;
7
+ tenantId: Optional<string>;
7
8
  apiIntegrationIdentifier: Optional<string>;
8
9
  apiIntegrationAppVersion: Optional<string>;
9
10
  uiLocale: string;
@@ -25,6 +25,7 @@ export const ftAppInfoStore = FtReduxStore.get({
25
25
  reducers: reducers,
26
26
  initialState: {
27
27
  baseUrl: undefined,
28
+ tenantId: undefined,
28
29
  apiIntegrationIdentifier: undefined,
29
30
  apiIntegrationAppVersion: undefined,
30
31
  uiLocale: document.documentElement.lang || "en-US",
@@ -20,6 +20,7 @@ export declare class FtAppStateManager extends FtStateManager {
20
20
  updateAvailableContentLocales(): Promise<void>;
21
21
  private reloadConfiguration;
22
22
  setBaseUrl(baseUrl?: string): void;
23
+ setTenantId(tenantId?: string): void;
23
24
  setApiIntegrationIdentifier(apiIntegrationIdentifier: string): void;
24
25
  setApiIntegrationAppVersion(apiIntegrationAppVersion: string): void;
25
26
  setUiLocale(uiLocale: string): void;
@@ -77,6 +77,9 @@ export class FtAppStateManager extends FtStateManager {
77
77
  this.store.actions.baseUrl(baseUrl);
78
78
  window.fluidTopicsBaseUrl = baseUrl;
79
79
  }
80
+ setTenantId(tenantId) {
81
+ this.store.actions.tenantId(tenantId);
82
+ }
80
83
  setApiIntegrationIdentifier(apiIntegrationIdentifier) {
81
84
  this.store.actions.apiIntegrationIdentifier(apiIntegrationIdentifier);
82
85
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-app-context",
3
- "version": "2.1.18",
3
+ "version": "2.1.19",
4
4
  "description": "Global application context for Fluid Topics integrations",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,12 +19,12 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-wc-utils": "2.1.18",
22
+ "@fluid-topics/ft-wc-utils": "2.1.19",
23
23
  "@lit/context": "1.1.6",
24
24
  "lit": "3.1.0"
25
25
  },
26
26
  "devDependencies": {
27
- "@fluid-topics/public-api": "1.0.132"
27
+ "@fluid-topics/public-api": "1.0.133"
28
28
  },
29
- "gitHead": "2effe252f9ab22ede85f961b8464ec8aa4d27870"
29
+ "gitHead": "c2c202986d05fbee1378d8dbb74fa609e89260ec"
30
30
  }