@fluid-topics/ft-app-context 2.2.2 → 2.2.4

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.
@@ -9,6 +9,7 @@ export interface FtAppContextProperties {
9
9
  editorMode?: boolean;
10
10
  noCustom?: boolean;
11
11
  noCustomComponent?: boolean | string;
12
+ noCustomCode?: boolean | string;
12
13
  withManualResources?: boolean;
13
14
  messageContexts?: FtMessageContext[];
14
15
  session?: FtSession;
@@ -15,6 +15,7 @@ export interface FtAppInfoState {
15
15
  editorMode: boolean;
16
16
  noCustom: boolean;
17
17
  noCustomComponent: boolean | string;
18
+ noCustomCode: boolean | string;
18
19
  session: Optional<FtSession>;
19
20
  openExternalDocumentInNewTab: boolean;
20
21
  navigatorOnline: boolean;
@@ -36,6 +36,7 @@ export const ftAppInfoStore = FtReduxStore.get({
36
36
  editorMode: false,
37
37
  noCustom: false,
38
38
  noCustomComponent: false,
39
+ noCustomCode: false,
39
40
  session: undefined,
40
41
  openExternalDocumentInNewTab: false,
41
42
  navigatorOnline: true,
@@ -33,6 +33,7 @@ export declare class FtAppStateManager extends FtStateManager {
33
33
  setNoCustom(noCustom: boolean): void;
34
34
  setEditorMode(editorMode: boolean): void;
35
35
  setNoCustomComponent(noCustomComponent: boolean | string): void;
36
+ setNoCustomCode(noCustomCode: boolean | string): void;
36
37
  setSession(session?: FtSession): void;
37
38
  setOpenExternalDocumentInNewTab(openExternalDocumentInNewTab: boolean): void;
38
39
  setNavigatorOnline(navigatorOnline: boolean): void;
@@ -128,6 +128,9 @@ export class FtAppStateManager extends FtStateManager {
128
128
  setNoCustomComponent(noCustomComponent) {
129
129
  this.store.actions.noCustomComponent(noCustomComponent);
130
130
  }
131
+ setNoCustomCode(noCustomCode) {
132
+ this.store.actions.noCustomCode(noCustomCode);
133
+ }
131
134
  setSession(session) {
132
135
  this.store.actions.session(session);
133
136
  setTimeout(() => this.updateIfNeeded());
@@ -22,7 +22,7 @@ export const withHistory = applyMixinOnce(Symbol("withHistory"), function (Redux
22
22
  this.updateState();
23
23
  }
24
24
  disconnectedCallback() {
25
- window.FluidTopicsHistoryService.addHistoryChangeListener(this.updateState);
25
+ window.FluidTopicsHistoryService.removeHistoryChangeListener(this.updateState);
26
26
  super.disconnectedCallback();
27
27
  }
28
28
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-app-context",
3
- "version": "2.2.2",
3
+ "version": "2.2.4",
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.2.2",
22
+ "@fluid-topics/ft-wc-utils": "2.2.4",
23
23
  "@lit/context": "1.1.6",
24
24
  "lit": "3.3.3"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@fluid-topics/public-api": "1.0.137"
28
28
  },
29
- "gitHead": "b4be5c398b242bdc7d902866c353cf92cc1f72c7"
29
+ "gitHead": "2ac039d227e4c6f0630b0bfe10cac9a28d4cd41f"
30
30
  }