@financial-times/dotcom-ui-app-context 7.3.0 → 7.3.1
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.
- package/dist/browser/client/AppContext.d.ts +10 -0
- package/dist/browser/client/browser.d.ts +2 -0
- package/dist/browser/client/loadAppContext.d.ts +2 -0
- package/dist/browser/components/AppContextEmbed.d.ts +6 -0
- package/dist/browser/constants.d.ts +1 -0
- package/dist/browser/index.d.ts +2 -0
- package/dist/node/client/AppContext.d.ts +10 -0
- package/dist/node/client/browser.d.ts +2 -0
- package/dist/node/client/loadAppContext.d.ts +2 -0
- package/dist/node/components/AppContextEmbed.d.ts +6 -0
- package/dist/node/constants.d.ts +1 -0
- package/dist/node/index.d.ts +2 -0
- package/dist/tsconfig.tsbuildinfo +2084 -0
- package/package.json +8 -6
- package/src/client/AppContext.ts +0 -20
- package/src/client/browser.ts +0 -11
- package/src/client/loadAppContext.ts +0 -7
- package/src/components/AppContextEmbed.ts +0 -11
- package/src/constants.ts +0 -1
- package/src/index.ts +0 -2
- package/src/types.d.ts +0 -14
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TAppContext } from '../types';
|
|
2
|
+
export declare type TAppContextOptions = {
|
|
3
|
+
appContext: TAppContext;
|
|
4
|
+
};
|
|
5
|
+
export default class AppContext {
|
|
6
|
+
private appContext;
|
|
7
|
+
constructor(options: TAppContextOptions);
|
|
8
|
+
get(property: string): any;
|
|
9
|
+
getAll(): TAppContext;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const APP_CONTEXT_ELEMENT_ID = "page-kit-app-context";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TAppContext } from '../types';
|
|
2
|
+
export declare type TAppContextOptions = {
|
|
3
|
+
appContext: TAppContext;
|
|
4
|
+
};
|
|
5
|
+
export default class AppContext {
|
|
6
|
+
private appContext;
|
|
7
|
+
constructor(options: TAppContextOptions);
|
|
8
|
+
get(property: string): any;
|
|
9
|
+
getAll(): TAppContext;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const APP_CONTEXT_ELEMENT_ID = "page-kit-app-context";
|