@fluid-topics/ft-app-context 1.1.50 → 1.1.52

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.
@@ -7,8 +7,6 @@ declare global {
7
7
  }
8
8
  }
9
9
  export declare class FluidTopicsApiProvider {
10
- private static API?;
11
- private static build;
12
10
  static get(integrationIdentifier?: string): FluidTopicsApi | undefined;
13
11
  static await(integrationIdentifier?: string): Promise<FluidTopicsApi>;
14
12
  }
@@ -1,6 +1,6 @@
1
1
  import { ftAppInfoStore } from "../redux-stores/FtAppInfoStore";
2
2
  export class FluidTopicsApiProvider {
3
- static build(integrationIdentifier) {
3
+ static get(integrationIdentifier) {
4
4
  const { baseUrl, apiIntegrationIdentifier } = ftAppInfoStore.getState();
5
5
  const id = integrationIdentifier !== null && integrationIdentifier !== void 0 ? integrationIdentifier : apiIntegrationIdentifier;
6
6
  if (baseUrl && id && window.fluidtopics) {
@@ -8,13 +8,6 @@ export class FluidTopicsApiProvider {
8
8
  }
9
9
  return undefined;
10
10
  }
11
- static get(integrationIdentifier) {
12
- var _a;
13
- if (integrationIdentifier != null) {
14
- return FluidTopicsApiProvider.build(integrationIdentifier);
15
- }
16
- return (_a = FluidTopicsApiProvider.API) !== null && _a !== void 0 ? _a : (FluidTopicsApiProvider.API = FluidTopicsApiProvider.build());
17
- }
18
11
  static await(integrationIdentifier) {
19
12
  return new Promise((accept) => {
20
13
  let maybeApi = FluidTopicsApiProvider.get(integrationIdentifier);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-app-context",
3
- "version": "1.1.50",
3
+ "version": "1.1.52",
4
4
  "description": "Global application context for Fluid Topics integrations",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,11 +19,11 @@
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": "1.1.50",
22
+ "@fluid-topics/ft-wc-utils": "1.1.52",
23
23
  "lit": "3.1.0"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@fluid-topics/public-api": "1.0.62"
27
27
  },
28
- "gitHead": "d7ba5acbdff08358500d0c3eec6c95bd9d406cb2"
28
+ "gitHead": "8b2c90df3e7d82be373f6e963272a37ebf57b017"
29
29
  }